Skip to content

Numeric constant "-." cannot be implicitly multiplied because it ends with "." #23752

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

Closed
dalum opened this issue Sep 18, 2017 · 1 comment
Closed

Comments

@dalum
Copy link
Contributor

dalum commented Sep 18, 2017

It took me a while to decipher this error message. I think it treats -. as the beginning of a negative floating point.

julia> -.((1, 2))
ERROR: syntax: numeric constant "-." cannot be implicitly multiplied because it ends with "."

Would be nice if it said something more useful like "-.(...)" is ambiguous, use "(-).(...)" for broadcasting.

Same thing happens with +, but other unary operators like ~ have just as weird errors:

julia> ~.((1, 2))
ERROR: syntax: invalid identifier name "."
@dalum
Copy link
Contributor Author

dalum commented Sep 18, 2017

Oops, noticed it's a dup of #22498.

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