Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
This is probably getting dangerously close to personal preference territory, but
;; bad (defn print-seq [s] (when-not (empty? s) (prn (first s)) (recur (rest s))))
reads a lot better to me than
;; good (defn print-seq [s] (when (seq s) (prn (first s)) (recur (rest s))))
even after having used Clojure for 3 years, including lots of time writing it for my day job. Is there something we could link to explaining why nil punning is desirable/better here?
Ah, indeed, this seems like the relevant thread:
I can submit an update linking to that from the style guide if that sounds appropriate to you!
Yep, that sounds good.
On Tuesday, March 26, 2013 at 6:38 PM, Travis Vachon wrote: