3 ms·
Seasoned Clojurians: is (every? #(= % “success”) (map :status (:state task))) actually considered crappy code? It looks perfectly natural to me, but my Lisp
by dfan 10y ago
Seasoned Clojurians: is
(every? #(= % “success”) (map :status (:state task)))
actually considered crappy code? It looks perfectly natural to me, but my Lisp background is more generic.
- shady-lady 10y agocrapiness comes more so on the readability/presentation aspect.
- SomeHacker44 10y agoI had the same reaction. I much prefer this to the threading macro.
- weavejester 10y agoNo, not at all. The threading macros are more useful when you have more nested code. For example: (->> coll (remove nil?) (filter :available?) (map :stock) (reduce +)) Is perhaps a little easier to read than: (reduce + (map :stock (filter :available? (remove nil? coll))))