(one & clauses)
Exactly like #'cond
, but on #'*assert*
, the following will be checked:
Helps avoiding sequential semantics, and related ambiguity
(is a given cond
? intentionally or unintentionally sequential?).
For said checking, all conditions are evaluated eagerly, so they should be side-effect free. Only the truthy condition's 'consequence' will be evaluated, and once.
Exactly like `#'cond`, but on `#'*assert*`, the following will be checked: * No duplicate conditions are contained; and * Exactly one condition is truthy. Helps avoiding sequential semantics, and related ambiguity (is a given `cond`? intentionally or unintentionally sequential?). For said checking, all conditions are evaluated eagerly, so they should be side-effect free. Only the truthy condition's 'consequence' will be evaluated, and once.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close