On 2013-11-06 09:34, Chad Joan wrote:

Also, IIRC, it is believed that string mixins with CTFE are potentially
more powerful.  I am under the assumption that Walter is taking the long
view and waiting for the community to furnish their own powerful AST
manipulation tools using the existing spec.  I suspect that he is
opposed to baking AST manipulation into the /language spec/, but is
perfectly accepting of the notion of using AST manipulation to generate
code, reduce boilerplate, implement exotic features and DSLs, and so
on.  Just don't complicate the core language any more than it already
is. Sorry if I misrepresented you Walter; I can only make educated
guesses ;)

The problem with this is the ugly syntax, it requires a string mixin and the source code needs to be embedded in strings. You also need a complete front end that works at compile time.

This is my vision of AST macros: https://dl.dropboxusercontent.com/u/18386187/ast_macros.html

--
/Jacob Carlborg

Reply via email to