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 builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close