-
-
Couldn't load subscription status.
- Fork 384
Make functions in string api accept numbers #2016
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
Conversation
All of these functions effectively call `tostring()`, when the passed parameter is a number. I think there is no need to raise warnings if users pass numbers instead of strings to these functions.
|
@carsakiller can I get your opinion on this in addition to Sumneko's? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there are quite a few places where numbers can be used, and they are converted to strings. Here are some of the ones I found.
|
I believe |
I tested |
|
Thanks for the tests adjustment! |
All of these functions effectively call
tostring(), when the passed parameter is a number. I think there is no need to raise warnings if users pass numbers instead of strings to these functions.You can test this easily online: https://www.lua.org/cgi-bin/demo.