Breaking
current-scope, with-scope, and assoc-scope.Note: In CLJS, a var with value nil is indistinguishable from an unbound var when not in scope.
However, explicitly scoping to nil works correctly and returns nil (not the default).
default arity to ask: optionally return a default value rather than throwing when var is unbound.Note: since nil and "unbound" is indistinguishable in ClojureScript, returns default when the var is unbound or contains
nil.
Initial release.
scoping - establish scoped bindings (CLJ + CLJS).ask - access scoped values (CLJ + CLJS).current-scope - capture current scope map (CLJ only).with-scope - restore a captured scope (CLJ only).assoc-scope - extend a captured scope with additional bindings (CLJ only).Can you improve this documentation?Edit on GitHub
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 |