<< Back to previous view

[CLJS-450] (ns) within (do) inconsistent with Clojure behaviour Created: 27/Dec/12  Updated: 08/Jul/17  Resolved: 08/Jul/17

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Trivial
Reporter: Stuart Campbell Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: None


An (ns) within a (do) doesn't quite work as expected at the REPL:

ClojureScript:cljs.user> (do (ns foo) (def x 42))   
ClojureScript:foo> x
ClojureScript:cljs.user> cljs.user/x

The Clojure equivalent:

user=> (do (ns foo) (def x 42))
foo=> x

Comment by David Nolen [ 05/Jan/13 2:05 PM ]

Looks like we need to do something similar to what is done in Clojure with top level do - http://github.com/frenchy64/typed-clojure/pull/4

Comment by David Nolen [ 08/Jul/17 11:00 AM ]

far as I know this particular issue is now fixed at the REPL.

Generated at Thu Jan 18 10:14:06 CST 2018 using JIRA 4.4#649-r158309.