DIP42 - Add enum E(T) = expression; eponymous template support

Denis Shelomovskij verylonglogin.reg at gmail.com
Sat Jun 29 08:01:50 PDT 2013


26.06.2013 20:35, Andrej Mitrovic пишет:
> On 6/26/13, Denis Shelomovskij <verylonglogin.reg at gmail.com> wrote:
>> which will look better this way:
>> ---
>> static if (...)
>>       enum template = ...;
>> else static if (...)
>>       enum template = ...;
>> else ...
>> ---
>
> Yeah I agree, this is more important than DIP42's shortened syntax for
> simple templates. It's the more complicated templates that are the
> problem.
>

It's rather strange that enhancement 7364 isn't implemented yet (and 
even not discussed) as it's an easy-to-implement change with big pros 
and no cons.

-- 
Денис В. Шеломовский
Denis V. Shelomovskij


More information about the Digitalmars-d mailing list