Nick Sabalausky wrote:

> "Jacob Carlborg" <d...@me.com> wrote in message
> news:iednio$2vj...@digitalmars.com...
>>
>> I can't quite visualize how the final code will look like and as you say
>> it's hard without a formal definition of AST macros. But I think somehow
>> it would be possible, I mean instead of combining strings one combine
>> expressions/syntax. But I don't know if it would be possible to combine
>> incomplete expressions.
>>
> 
> One parallel that may or may not be applicable, but might be worth
> considering, is dynamically building XHTML: Using a string-template system
> is generally found to work very well, but building it via a DOM
> (essentially an AST) is often considered a bit of a pain. I guess the
> simplest take-away would be that string-based approaches may be easier get
> working well. FWIW.

The newest vb.net has this feature, if I understand you correctly, via xml 
literals and linq expressions. It is quite convenient.

http://msdn.microsoft.com/en-us/library/bb384460.aspx

Reply via email to