shorthand template and static conditionals?

Jeremie Pelletier jeremiep at gmail.com
Wed Jul 29 15:44:59 PDT 2009


Could it be a valid option to have a shorthand template syntax if the template body has only one statement? Something like:

template Tuple(A...) alias Tuple = A;

Another suggestion would be to have the ?: syntax supported for static statements, as we're currently forced to use static ifs. It really adds a lot of code to templates for even simple conditions.



More information about the Digitalmars-d mailing list