Functions returning points/lines should preserve provenance when called again with the same inputs #31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Consider the following:
The resulting points
a,b, andcwill not be considered colinear, despite all lying on the linehoriz(5). The issue is that each timehorizis called, it generates a new line, with its own provenance, even if the inputs are the same.One challenge here is that it would make floating-point equality somewhat loadbearing. Maybe this is okay, especially since the use case mentioned here is generally going to come up with integer literals (or at worst, simple rational expressions), where floating point equality isn't problematic. But this could also justify explicitly adding a
Rationaltype as part of #2