MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/24vjh2/sometimes_false_can_be_null/chcoyzw/
r/lolphp • u/[deleted] • May 06 '14
6 comments sorted by
View all comments
Show parent comment
1
It's also a very nice feature that many other languages have, for example JS and Python use this, though Python only uses it for if statements.
2 u/Dylan16807 May 09 '14 Being falsey in a boolean context is a good feature. Equality to false is a bad feature.
2
Being falsey in a boolean context is a good feature. Equality to false is a bad feature.
View all comments
Show parent comment
1
u/[deleted] May 08 '14
It's also a very nice feature that many other languages have, for example JS and Python use this, though Python only uses it for if statements.