I'm relatively new to ClojureScript and having never worked in a lisp-like language before, I must say that the documentation is rather... lacking. I just want to transform the following JavaScript statement into ClojureScript:
var obj = new namespace1.namespace2.SomeObject();
I know that you can create new instances of an object in cljs by writing something like
(SomeObject.)
but trying
(def obj (namespace1/namespace2/SomeObject.))
didn't compile. What should I be doing instead?