Liking cljdoc? Tell your friends :D
Clojure only.

noahtheduke.splint.rules.lint.loop-empty-when


loop-empty-whenclj

Empty loops with nested when can be while.

Examples:

; bad (loop [] (when (some-func) (println 1) (println 2) (recur)))

; good (while (some-func) (println 1) (println 2) (recur))

Empty loops with nested when can be `while`.

Examples:

; bad
(loop [] (when (some-func) (println 1) (println 2) (recur)))

; good
(while (some-func) (println 1) (println 2) (recur))
sourceraw docstring

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

× close