On Wed, Sep 12, 2012 at 7:56 PM, Kevin Downey <redc...@gmail.com> wrote: > I've used it to make ClojureScript functions in to javascript object > constructors > > (defn Foo [] (js* "/*") (js* "*/")) > > results in the generated return being commented out, so (Foo.) works > > I use this in a macro for creating new types that are based on > existing Google Closure types
In JS when using functions as constructors the return null statement will be ignored - new Foo() will always return the instance. David -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en