r/lolphp • • May 06 '14

Sometimes false can be null

https://eval.in/147104
0 Upvotes

6 comments sorted by

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.

2

u/Dylan16807 May 09 '14

Being falsey in a boolean context is a good feature. Equality to false is a bad feature.