Skip to content
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

add operators <-- and <--> #36729

Merged
merged 1 commit into from
Jul 22, 2020
Merged

add operators <-- and <--> #36729

merged 1 commit into from
Jul 22, 2020

Conversation

JeffBezanson
Copy link
Member

AFAICT these give parse errors currently, so there should be no problem. I'll separately PR a "minor change" to make --> a more normal operator.

fixes #36666

@JeffBezanson JeffBezanson added the parser Language parsing and surface syntax label Jul 19, 2020
@JeffBezanson
Copy link
Member Author

Hmm, we might want to disallow 1<---2, which this parses as 1 <-- -2. Further -s are ok since you start getting an error about trying to use --.

@@ -15,7 +15,7 @@
(define prec-conditional '(?))
(define prec-arrow (append!
'(-- -->)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason, we don't have these with dots? If we have dotted versions of <-- and <-->, it probably makes sense to have those as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's part of the --> issue I referenced above.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right! Didn't read Stefan's comment closely enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser Language parsing and surface syntax
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: additional plain text arrow symbols
2 participants