Skip to content

Commit

Permalink
"unbound" is same as js/undefined (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfikes authored Jan 3, 2023
1 parent c1d1683 commit e60c077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/about/differences.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ self-host / bootstrapped ClojureScript via its `cljs.js/\*load-fn*` capability.

* `def` and `binding` work as in Clojure
** but on ordinary js variables
** Clojure can represent unbound vars. In ClojureScript `(def x)` results in `(nil? x)` being true.
** Clojure can represent unbound vars. In ClojureScript `(def x)` results in `(nil? x)` being `true`. (In this case, `(identical? nil x)` is `false`, but `(identical? js/undefined x)` is `true`.)
** In Clojure, `def` yields the _var itself_. In ClojureScript `def` yields the _value_, unless the REPL option <<xref/../../../reference/repl-options#def-emits-var,:def-emits-var>> is set (this defaults to `true` for REPLs).
* Atoms work as in Clojure
* Refs and Agents are not currently implemented
Expand Down

0 comments on commit e60c077

Please sign in to comment.