Skip to content

Commit e60c077

Browse files
authored
"unbound" is same as js/undefined (#228)
1 parent c1d1683 commit e60c077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/about/differences.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ self-host / bootstrapped ClojureScript via its `cljs.js/\*load-fn*` capability.
275275

276276
* `def` and `binding` work as in Clojure
277277
** but on ordinary js variables
278-
** Clojure can represent unbound vars. In ClojureScript `(def x)` results in `(nil? x)` being true.
278+
** 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`.)
279279
** 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).
280280
* Atoms work as in Clojure
281281
* Refs and Agents are not currently implemented

0 commit comments

Comments
 (0)