Hi Ewen,

FWIW, the REPL special functions are mainly for their side effects.

Perhaps an argument could be made to have things (like `in-ns`) behave more 
like the plain Clojure REPL. But even in that case the return value seems to be 
specific to the JVM implementation:

user=> (in-ns 'foo.bar)
#object[clojure.lang.Namespace 0x41488b16 "foo.bar"]

- Mike

> On Jul 10, 2015, at 3:30 PM, ewen <[email protected]> wrote:
> 
> Hi,
> 
> What is the reason for special fns to always print nil instead of printing 
> their result 
> (https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/repl.cljc#L824)?
>  
> I'm asking because I'm building tooling around clojurescript and I would like 
> to be able to catch special fns result.
> 
> Thanks,
> Ewen.
> 
> -- 
> 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 http://groups.google.com/group/clojurescript.

-- 
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 http://groups.google.com/group/clojurescript.

Reply via email to