Fallback utilties
Fallback utilties
(always-return expr-fn ret-val)To be used with great caution, as this is not a good practice to ignore exceptions. This should be used only in if it's really important for some application part to always return the value and should be used as a last resort.
Like e.g. it's used in not-found-page for it to be displayed without a problem and inform a user that something is wrong.
expr fails returns ret-val
To be used with great caution, as this is not a good practice to ignore exceptions. This should be used only in if it's really important for some application part to always return the value and should be used as a last resort. Like e.g. it's used in not-found-page for it to be displayed without a problem and inform a user that something is wrong. `expr` fails returns `ret-val`
(cljs-env? env)Take the &env from a macro, and tell whether we are expanding into cljs.
Take the &env from a macro, and tell whether we are expanding into cljs.
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 |