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

expr precedence printing error #6930

Closed
vtjnash opened this issue May 23, 2014 · 0 comments
Closed

expr precedence printing error #6930

vtjnash opened this issue May 23, 2014 · 0 comments
Labels
kind:bug Indicates an unexpected problem or unintended behavior

Comments

@vtjnash
Copy link
Sponsor Member

vtjnash commented May 23, 2014

:(a & (b&&c)) is different from :(a&b && c) (see dump(Expr)), but prints the same:

julia> :(a&b && c)
:(a & b && c)

julia> :((a&b) && c)
:(a & b && c)

julia> :(a& (b && c))
:(a & b && c)

julia> dump(:(a& (b && c)))
Expr 
  head: Symbol call
  args: Array(Any,(3,))
    1: Symbol &
    2: Symbol a
    3: Expr 
      head: Symbol &&
      args: Array(Any,(2,))
        1: Symbol b
        2: Symbol c
      typ: Any
  typ: Any

julia> dump(:(a&b && c))
Expr 
  head: Symbol &&
  args: Array(Any,(2,))
    1: Expr 
      head: Symbol call
      args: Array(Any,(3,))
        1: Symbol &
        2: Symbol a
        3: Symbol b
      typ: Any
    2: Symbol c
  typ: Any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant