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

Be more picky about int/float arguments in Ruby #1596

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

heinrich5991
Copy link
Contributor

There are implicit integer conversions using to_int and no conversions for floats. This is correct according to
https://idiosyncratic-ruby.com/54-try-converting.html and Ruby's Discord https://discord.com/channels/518658712081268738/788748516352458752/1118618993276760105.

@heinrich5991 heinrich5991 requested a review from a team as a code owner June 14, 2023 21:32
@heinrich5991 heinrich5991 requested review from skhamis and removed request for a team June 14, 2023 21:32
@badboy badboy added this to the v0.24.0 milestone Jun 15, 2023
There are implicit integer conversions using `to_int` and no conversions
for floats. This is correct according to
https://idiosyncratic-ruby.com/54-try-converting.html and Ruby's Discord
https://discord.com/channels/518658712081268738/788748516352458752/1118618993276760105.
@badboy badboy merged commit 5fbec96 into mozilla:main Jun 15, 2023
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.

2 participants