News for hackers. Stuff that matters.
Re:Google Releases JavaScript.next to JavaScript Compiler Tr... by indy on Wednesday May 04, 2011 @02:21AM (#2512956)
Wouldn't it be harder to use macros effectively in a non-homoiconic language?
Re:Google Releases JavaScript.next to JavaScript Compiler Tr... by jmesserly on Wednesday May 04, 2011 @03:11AM (#2513031)
That's a fair point. Would the AST strawman proposal (http://wiki.ecmascript.org/doku.php?id=strawman:ast) get you most of the way there? If nothing else, it would make some metaprogramming of the source tree possible. Combine that with module loaders (http://wiki.ecmascript.org/doku.php?id=harmony:module_loader...) and I think you're pretty close to macros.