-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Should toString() be added to number? #33
Comments
You can achieve this with |
Ah, thank you. For what it's worth, I think |
toString() doesn't exist at the moment (Except for rawstring to get back a valid utf8 string). I'm hesitant to add it to number because it would lead to other primitives to have it too. |
Ah OK. I guess what I was suggesting is to allow users to use Broadly, I think having |
Gotcha, yea to add to this, I think we should rename |
Just pushed an update for this. Also fixed some formatting issues with number and raw string slice. |
Kind of the reverse of #31. I tried:
in the playground and get following error:
I guess it's a rare case to want to convert a number to a string, but I think it should be possible.
The text was updated successfully, but these errors were encountered: