Mixin template evaluated to string can convert to string mixin expression implicitly

Don nospam at nospam.com
Mon Jun 27 01:39:38 PDT 2011


kenji hara wrote:
> Issue in bugzilla:
>   http://d.puremagic.com/issues/show_bug.cgi?id=6207
> Test implementation:
>   https://github.com/9rnsr/dmd/commit/52e4491cf6bf9ccf6dccc1fa60581fd6797d39b3
> 
> String mixin feature in D is very useful, but its syntax is bit ugly.
> My proposal will make it more softly, and introduces more generative
> programming.
> 
> Any thoughts?
> 
> Kenji

Yes, it's _less_ ugly, but I just don't think it gets rid of enough of 
the ugliness. You still get that horrid q{ } around the code. I also 
don't see any reason for the feature to be restricted to templates.
The effect is a bit like sugar on syntax anchovies <g>.


More information about the Digitalmars-d mailing list