Functions that return a boolean should end in a question mark.
Doesn't verify the kind of function, just checks for anti-patterns in the
names. Also doesn't actually check the classic Common Lisp convention as we
have no way to know when a function name uses a word that naturally ends in
a 'p' (such as map
).
Examples:
(defn palindrome-p ...) (defn is-palindrome ...)
(defn palindrome? ...)
Functions that return a boolean should end in a question mark. Doesn't verify the kind of function, just checks for anti-patterns in the names. Also doesn't actually check the classic Common Lisp convention as we have no way to know when a function name uses a word that naturally ends in a 'p' (such as `map`). Examples: # bad (defn palindrome-p ...) (defn is-palindrome ...) # good (defn palindrome? ...)
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |