Liking cljdoc? Tell your friends :D

noahtheduke.splint.rules.lint.thread-macro-one-arg


thread-macro-one-argclj

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)
sourceraw docstring

thread-macro?clj

(thread-macro? node)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close