Skip to content

Add explicit clarification that values like 0 and "" are truthy in Elixir #13300

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

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

stevejay
Copy link
Contributor

I thought that it might be useful to explicitly call out this difference between Elixir and some other programming languages. The difference caught me off guard when I started writing a few simple functions in Elixir.

Copy link
Member

@whatyouhide whatyouhide left a comment

Choose a reason for hiding this comment

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

I’m ok with more clarification, yep 💟

@josevalim josevalim merged commit 5e13403 into elixir-lang:main Jan 30, 2024
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@stevejay stevejay deleted the patch-2 branch January 30, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants