-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Allow underscores as separators in the math
builtin
#8611
Conversation
looks really nice, I only have nitpicks |
Thanks for the review. A missed null pointer check isn't a nitpick. :) I've made the changes you requested -- one thing is that I added a changelog entry and I'm not sure about where I put it, so before merging someone should double-check that. |
I want to hold this until after 3.4.0 is out as we're doing the final QA for the release now. |
Yep that makes sense -- we'll just have to move the changelog entry before merging (it's under 3.4 right now). |
Merged now, thanks! |
Description
This change allows underscores as visual separators in the math builtin, so
math 1_000 + 2_000
will return3000
. We allow leading, trailing, and multiple underscores. See the documentation of thefish_wcstod_underscores
function in the PR.See also #8607.
Fixes issue #8496.
TODOs: