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

&(p::Boo, q::Bool) errors #35430

Closed
JeffreySarnoff opened this issue Apr 10, 2020 · 1 comment
Closed

&(p::Boo, q::Bool) errors #35430

JeffreySarnoff opened this issue Apr 10, 2020 · 1 comment

Comments

@JeffreySarnoff
Copy link
Contributor

julia> true | false, |(true, false)
(true, true)

julia> true ⊻ false, ⊻(true, false)
(true, true)

julia> true & false
false

julia> &(true, false)
ERROR: syntax: invalid syntax &(true, false) around REPL[63]:1
Stacktrace:
 [1] top-level scope at REPL[63]:1

Julia v1.4.0 on win64

@JeffreySarnoff JeffreySarnoff changed the title |(p, q), ⊻(p, q) work, &(p::Boo, q::Bool) errors &(p::Boo, q::Bool) errors Apr 10, 2020
@yuyichao
Copy link
Contributor

This is intentional. See #34748 #34693 #34767 for related discussions.

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

2 participants