News for hackers. Stuff that matters.
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

  if lst:
    # do something with lst
is preferred to

  if len(lst) > 0:
    # do something with lst
in Python. It becomes more obvious when you use descriptive names:

  if customers:
    # do something with customers
Re:Clojure Style Guide by tel on Saturday August 09, 2014 @12:21PM (#8157204)
... 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 X
Re:Clojure Style Guide by kyllo on Saturday August 09, 2014 @04:39PM (#8157957)
In 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.