Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I'm sorry but what language has such a broken equivalence table that the string 'false' somehow equates to the boolean false?
-
@stonestorm JavaScript.
If you don't use === that is, at which point it is your own fault -
sboesch5465y@kescherRant no, not even JS is that broken. But yeah, "==" doesn't exist in modern JS, anyway.
Related Rants
php -r "var_dump(false=='false');"
Command line code:1:
bool(false)
Type juggling I love you
rant
php
type juggling