-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
base: fix parsing Float32 literals with f/F in place of e/E. #44910
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
base: master
Are you sure you want to change the base?
base: fix parsing Float32 literals with f/F in place of e/E. #44910
Conversation
cb1982a
to
2438b82
Compare
I think this is a bit strange to have since the |
2438b82
to
6b920e5
Compare
@KristofferC I think that this is good in terms of language consistency but I don't have a strong preference for either. Note that @Keno's bumped into this issue a few times, perhaps he can give some insight? |
6b920e5
to
43970ea
Compare
To me this looks like an improvement, but I think it is worth considering taking the Parsers.jl implementation. It would be relatively complicated, but Parsers.jl is several times faster than |
@oscardssmith Thanks for the review, I am interested in porting over |
|
In general, Until/unless we replace our usage of |
OTOH, I am very much in favor of replacing |
That being said, this feature was already discussed and accepted in #5690 |
Description
This PR should fix #5690.
Discussion
In the previous PR, there was a comment by @StefanKarpinski in #37961 (comment):
However we are still dependent on the native implementation for
strtod
, which doesn't recognizef/F
for the exponent.julia/src/support/strtod.c
Lines 222 to 260 in 6d78404
An alternate option is to change the API from
julia/src/support/strtod.h
Lines 10 to 11 in 6d78404
to
Then we can modify the first instance of
f/F
toe
there.References