title: Clojurescript: Create New Object from Namespace
body: <p>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:</p>
  
  <pre><code>var obj = new namespace1.namespace2.SomeObject();
  </code></pre>
  
  <p>I know that you can create new instances of an object in cljs by writing something like</p>
  
  <pre><code>(SomeObject.)
  </code></pre>
  
  <p>but trying</p>
  
  <pre><code>(def obj (namespace1/namespace2/SomeObject.))
  </code></pre>
  
  <p>didn't compile.  What should I be doing instead?</p>