On Thu, Sep 13, 2012 at 1:31 PM, Brandon Bloom <snprbo...@gmail.com> wrote: >> Why should the backend have to deal with JS AST nodes? > > > I'm considering changing the emit phase to produce a Google Closure Compiler > AST. This would have several benefits: > > The emit phase would become functional (returning an AST) instead of > procedural (printing source).
At the cost of additional complexity for the extremely simple cases where we leverage js* internally. > SourceMaps would be provided, virtually for free, by the Closure Compiler. > We just need to copy line and column metadata to the JS AST nodes. > Pretty printed code generation is also free (useful for debugging the > compiler). This does sound appealing but looks like a large overhaul which is a significant cost. Also, I don't think we're that far off from source maps. 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