Lang.NEXT panel (dfix)

Stefan Koch via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon Jun 16 14:10:34 PDT 2014


> DSL?! You crazy bro?
> If you are using DScanner, just let people use D itself to 
> write their own custom AST transformation code. With DUB it 
> should be super easy to compile that code and run it on the 
> target D code.
>
> This solution is vastly more simple than inventing your own 
> DSL, and scales way better as a general purpose language will 
> have much more power that selection/transformation patterns.

The thing I have in mind should be really easy for simple tasks
as in
`if constuctor in any class has parameter of type "oldRouter" 
change that parameter to type "new Router"`
but i habe yet to find a good notation for that



More information about the Digitalmars-d-announce mailing list