Liking cljdoc? Tell your friends :D
Clojure only.

noahtheduke.splint.rules.lint.cond-else


cond-elseclj

It's nice when the default branch is consistent.

Examples:

; bad (cond (< 10 num) (println 10) (< 5 num) (println 5) true (println 0))

; good (cond (< 10 num) (println 10) (< 5 num) (println 5) :else (println 0))

It's nice when the default branch is consistent.

Examples:

; bad
(cond (< 10 num) (println 10) (< 5 num) (println 5) true (println 0))

; good
(cond (< 10 num) (println 10) (< 5 num) (println 5) :else (println 0))
sourceraw docstring

not-elseclj

(not-else form)
source

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

× close