What are AST Macros?
Lars T. Kyllingstad
public at kyllingen.NOSPAMnet
Sun Jul 11 05:47:26 PDT 2010
On Sun, 11 Jul 2010 14:26:51 +0200, Philippe Sigaud wrote:
> Don wrote:
>
>
>> Part of what happened was that at the conference, I showed that the
>> functionality of string mixins was a superset of what was planned for
>> AST macros. Since that time, there has not been any kind of proposal,
>> or even a concept. So it's a bit meaningless to talk about "AST macros"
>> right now as if they were a planned-but-not-yet-implemented feature.
>>
>>
> That's interesting. Do you have a link or any text I could read on that?
> String mixins sure are powerful, but I can't get ird of a feeling of
> 'cheating' when using them. Maybe with some kind of string interpolation
> they could be made more palatable to some?
I find that using token strings, q{ ... }, rather than ordinary "..."
strings, sometimes makes string mixins feel less like a hack. Especially
considering that my editor (vim) highlights token strings like ordinary
code -- or, more likely, it doesn't recognise them as strings. ;)
-Lars
More information about the Digitalmars-d
mailing list