-
-
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
1.+im
returns a Complex{Int}
#10920
Comments
This is parsed as |
I see the problem. Feel free to close if it cannot be resolved. |
I wouldn't mind this being a warning or something. |
Dup of #5246, which is nearly impossible to search for. But I'll leave this open for now. Parser warnings are annoying since the REPL parses your statements twice, so they print twice. But maybe that can be fixed, too. |
1. + im
returns a Complex{Int}
1.+im
returns a Complex{Int}
I don't really like giving a warning for this. It means you have to change your code if you want to remove the annoying message, so it might as well be an error if anything. |
Is it easy for the parser to error and give both possible parses for On Tue, Apr 21, 2015 at 10:18 AM, Jeff Bezanson [email protected]
|
Yes I think it would be pretty easy to give an error. |
+1 to parser error Old crufty me is used to writing |
+1 for parser error |
… operators This *breaking* change throws a parser error asking the user to disambiguate the parsing of a numeric literal and dot operator with no whitespace in between. We are consistent in how this is handled (always favor the operator in parsing with no disambiguating whitespace), but there was popular support that this should be special cased as it it quite hard to track these subtle syntax errors down. Closes #10920
… operators This *breaking* change throws a parser error asking the user to disambiguate the parsing of a numeric literal and dot operator with no whitespace in between. We are consistent in how this is handled (always favor the operator in parsing with no disambiguating whitespace), but there was popular support that this should be special cased as it it quite hard to track these subtle syntax errors down. Closes #10920
See comments in #11529. |
should be a Float64
The text was updated successfully, but these errors were encountered: