-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse \mapsfrom and rest of unicode arrows as infix operators #23224
Comments
This doesn't really belong on the 1.0 milestone since fixing this will not break any code. Of course it would be nice to have, and if someone implements it, great, but it's not a release blocker. |
Currently it is parsed as an identifier for some reason, so this would be a breaking change:
|
However, many of the things in the Arrows block are parsed as operators, so U+21A4 must have been an oversight. We should go through and make sure that everything in this block is included. |
One issue with some of the elements of the arrows block is precedence. Horizontal arrows are parsed with |
Maybe leftward arrows should also be right-associative? (#24153) |
Ideally if |
I was confused: all arrow-precedence operators are currently right associative. I believe that is standard both in logic and type notation (mumble mumble isomorphism). Currently everything in the arrows block with category Sm is parsed as an operator, which is good. For every remaining arrow character, we should either parse it as an arrow if it's obviously a sensible mathematical operator, or make it an invalid character. Then the invalid characters can be added as needed, if ever. |
Mentioned in #11223:
\mapsfrom
↤
(U+21A4) is not currently parsed as an infix operator. It should be parsed with the same precedence as\mapsto
(↦
).The text was updated successfully, but these errors were encountered: