-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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.0E0 allowed but not 1.0F0 #22273
Comments
For reference, C/C++ allows either case, but in that language |
Allowing this would technically be a breaking change, since it means float literal juxtaposition with a variable called |
Yeah, we'd have to deprecate |
An easier alternative that would also provide consistency is to go in the other direction: deprecate |
parse(Float64, x) should probably continue to be case insensitive, for reading data produced in other languages. In fact, we could make float parsing more permissive, while making Julia parsing less permissive. |
Currently,
|
It looks like that's because we do number parsing in C, and the Edit: That's on Windows. On other systems, we use the built-in |
ref #5690 |
Bump on this. @JeffBezanson feels strongly that |
+1 for removing |
See also #11212 |
I wonder if it would be possible to solve it in a more general way similar to string literals, such that |
I think it's more trouble than it's worth to do anything here. |
Seems like a slight parser inconsistency:
(Introduced in #1535.)
The text was updated successfully, but these errors were encountered: