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

Discourage the use of Bool#to_unsafe other than for C bindings #7320

Merged
merged 2 commits into from
Jan 19, 2019

Conversation

oprypin
Copy link
Member

@oprypin oprypin commented Jan 17, 2019

Dependent codebases shouldn't be infested with the word "unsafe" even if this happens to do the job. Directly using ternary is clearer, too.

Dependent codebases shouldn't be infested with the word "unsafe" even if this happens to do the job. Directly using ternary is clearer, too.
src/bool.cr Show resolved Hide resolved
This is a no-op for future-proofing
Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

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

Thank you @oprypin 👍

@Blacksmoke16 Blacksmoke16 mentioned this pull request Jan 18, 2019
@RX14 RX14 added this to the 0.27.1 milestone Jan 19, 2019
@RX14 RX14 merged commit 0473489 into crystal-lang:master Jan 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants