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

repr error in printing 3+ arg forms of :comparison operators #14481

Closed
vtjnash opened this issue Dec 24, 2015 · 2 comments
Closed

repr error in printing 3+ arg forms of :comparison operators #14481

vtjnash opened this issue Dec 24, 2015 · 2 comments
Assignees

Comments

@vtjnash
Copy link
Member

vtjnash commented Dec 24, 2015

for example:

julia> :(in(1,2,3))
:(1 in 2 in 3)

while that output expression would actually be interpreted as:
Expr(:comparison, 1, :in, 2, :in, 3) and lowered to (1 in 2) && (2 in 3)

@lnsp
Copy link

lnsp commented Dec 28, 2015

How should it be represented then? I think the prefix notation fits since the infix notation makes no sense as you said.

@vtjnash
Copy link
Member Author

vtjnash commented Dec 28, 2015

in prefix notation. the infix notation shouldn't be used since it doesn't round-trip correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants