- Fix cljdoc analysis failure by hiding
resolvefrom the ClojureScript analyzer via reader conditionals.
Breaking
- Add full ClojureScript support for
current-scope,with-scope, andassoc-scope. - All API functions now work on both CLJ and CLJS.
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).
- Add
defaultarity toask: 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.
- When binding 10+ forms, fall back to loop construction to avoid inlining huge forms at the callsite.
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).