Threading macros require more effort to understand so only use them with multiple args to help with readability.
Examples:
; bad (-> x y) (->> x y)
; good (y x)
; bad (-> x (y z))
; good (y x z)
; bad (->> x (y z))
; good (y z x)
Threading macros require more effort to understand so only use them with multiple args to help with readability. Examples: ; bad (-> x y) (->> x y) ; good (y x) ; bad (-> x (y z)) ; good (y x z) ; bad (->> x (y z)) ; good (y z x)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close