OT: Go go gadget templates

Ali Çehreli via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 5 17:04:40 PDT 2017


On 07/05/2017 04:25 PM, Luís Marques wrote:
> Funny...
>
> <https://twitter.com/snoyberg/status/882255351382462464>

Creative! However, I'm offended that other people never appreciate D's 
syntax. Why did they go (argh!) for C++ and Java template syntax? :/

Speaking of which, I've just experimented with triple function parameter 
lists: for run time, for compile time, and for ... some other time...

Note how it allows foo() and bar() function template templates to share 
template template arguments (long and uint below):

     foo❗⎛long⎞!"hello"(42);
     bar❗⎝uint⎠!"world"(43);

Ali
"this is a joke"



More information about the Digitalmars-d mailing list