Mixin template parameters / mixin template literals

ixid nuaccount at gmail.com
Wed Apr 24 16:04:01 PDT 2013


> Consider:
>
>     sort!("a > b")(array);
>
> This is almost perfect, except for "a > b" being a string 
> instead of "real" code. If "a > b" was an actual block of code 
> it could be syntax highlighted by the editor, directly grammar 
> checked by compiler, etc.

Is changing the language the right approach to this or would 
smarter IDEs possibly be a better direction?




More information about the Digitalmars-d mailing list