Open byorgey opened 2 years ago
Should sketch out a detailed design for the semantics of matching.
Related: #32 .
Another option is to just get rid of fraction patterns entirely. After hours of thinking about them, discussing with students, etc. I still can't really make heads or tails of what they are supposed to mean. They really aren't that useful either, so getting rid of them would just simplify a lot of things.
Currently,
In fact
f
is completely undefined, since the pattern2/4
will never match anything; rational inputs are always reduced, and the numerator and denominator will be matched literally.The above is a little strange, and maybe not worth fixing, but I think the below is more troubling:
I would expect to get
2
as a result.