Re:Clojure Style Guide
by justwannareply on Saturday August 09, 2014 @12:13PM
(#8157187)
I don't know any Clojure, but I guess it's for the same reason why
is preferred to
in Python. It becomes more obvious when you use descriptive names:
[ Parent
| on HN ]
... but involves such an overloading of the nature of truthiness! All to match a really ad hoc syntax sugaring of English?
if X ==> if there exists some XIn Python, "if there exists some X" would be more like
if x is not None:
In Python, [] (empty list) and {} (empty dict) are == False but are not None. They exist, and their types are List and Dict rather than NoneType, but they are "falsey" because they are empty.