The name says "once", but the docstring is more subtle: "defs name to have the 
root value of the expr iff the named var has no root value..." [1]

This may be related to issue CLJS-457 [2], although the present case seems more 
concrete.

You might submit an issue suggesting a mention on the Differences from Clojure 
page. [3]  

Also -- since no one probably cares how fast defonce runs, the first time -- if 
expr yields a void that does not satisfy defonce's test, would it be helpful to 
post a warning to the console?


[1] http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/defonce

[2] http://dev.clojure.org/jira/browse/CLJS-457

[3] https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to