Skip to content
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

improve string->number #209

Merged
merged 3 commits into from
May 20, 2024
Merged

Conversation

jrvidal
Copy link
Contributor

@jrvidal jrvidal commented May 16, 2024

Some minor improvements to string->number

TODO

  • Some tests

Comment on lines +143 to 144
(svalue @ SteelVal::NumV(_), _) => Ok(svalue),
_ => Ok(SteelVal::BoolV(false)),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I could try to handle all types of numbers, but I might need to expose some of the internals of number tokenization to avoid more duplication.

@jrvidal jrvidal marked this pull request as draft May 16, 2024 21:43
@jrvidal jrvidal marked this pull request as ready for review May 17, 2024 05:40
@mattwparas mattwparas merged commit a1283b2 into mattwparas:master May 20, 2024
3 checks passed
@jrvidal jrvidal deleted the string-to-number branch May 20, 2024 19:36
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

Successfully merging this pull request may close these issues.

None yet

2 participants