version: multiple conditions

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 16 22:09:52 PDT 2015


On Tuesday, 16 June 2015 at 20:57:03 UTC, Walter Bright wrote:
> Use of expression templates in C++ to implement DSLs is 
> probably some of the most awful code ever conceived.

Whereas string mixins allow us to do all kinds of crazy stuff 
with DSLs if you want to - but they're clearly confined in 
strings where you're not going to mistake them for normal D code. 
It's _very_ cool how Pegged is able to take a grammar in normal, 
PEG format, and generate a parser from it. But attempting 
anything like that with expression templates would have been 
horrible.

- Jonathan M Davis


More information about the Digitalmars-d mailing list