If I create a type like this

(deftype MyType [x] ...)

is there any way I can control what is displayed at the REPL when I create 
a new instance of MyType?

At present all I see is:

cljs.user=> (MyType. 1)
#object[cljs.user.MyType]

It's this "#object[cljs.user.MyType]" which I'd like to customise. I've 
checked so much of the documentation and can't find anything which might 
let me display something else.

Thanks.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/clojurescript/f4e216bf-db25-4ff8-b226-03bbbe7e396a%40googlegroups.com.

Reply via email to