Idiomatic if
defines both branches. when-not
returns nil
in the truthy branch.
Examples:
; bad (if (some-func) nil :a)
; good (when-not (some-func) :a)
Idiomatic `if` defines both branches. `when-not` returns `nil` in the truthy branch. Examples: ; bad (if (some-func) nil :a) ; good (when-not (some-func) :a)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close