-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Binary operators and broadcast syntax don't interact well #16993
Comments
The case with the "implicitly multiplied" error looks like a bug; there is no numeric constant present so at the very least it needs a better error. I don't think we ever intended to allow accessing fields of operators with |
Well, Also, I just noticed that unary operators other than julia> !.(1)
ERROR: syntax: invalid identifier name "."
in eval(::Module, ::Any) at ./boot.jl:231
in macro expansion at ./REPL.jl:92 [inlined]
in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:46 I am guessing because the parser is trying to parse |
Note that this should be mostly addressed in 0.6 by #17623, since you will just do |
Closed by 17623. |
Currently, it's necessary to wrap binary operators in parentheses to use them with the new broadcast syntax. Otherwise:
or
P.S. Also affects the not nearly as important but still happenable cases of using unicode operators as normal variables:
edit: I was so used calling custom binary operators unicode that I forgot that some of them are ascii...
The text was updated successfully, but these errors were encountered: