From e60c07756b89ed0801fdd2e00698faf22bd84d25 Mon Sep 17 00:00:00 2001 From: Mike Fikes Date: Tue, 3 Jan 2023 11:36:42 -0500 Subject: [PATCH] "unbound" is same as js/undefined (#228) --- content/about/differences.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/about/differences.adoc b/content/about/differences.adoc index 38e8454..57344ed 100644 --- a/content/about/differences.adoc +++ b/content/about/differences.adoc @@ -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 <> is set (this defaults to `true` for REPLs). * Atoms work as in Clojure * Refs and Agents are not currently implemented