Does D have too many features?

Maxim Fomin maxim at maxim-fomin.ru
Tue May 1 22:17:20 PDT 2012


On Wednesday, 2 May 2012 at 03:38:41 UTC, Adam D. Ruppe wrote:
> On Wednesday, 2 May 2012 at 03:22:02 UTC, Andrei Alexandrescu 
> wrote:
>> One feature to remove stands out - the struct initialization:
>> S s = { 1, 2 };
>
> I could live without that one, because D has an alternative:
>
> auto s = S(1, 2);
>
>

It has the same problem as the first one: members are part of the 
interface and a new one: struct literals are impossible if opCall 
is defined (if I am not mistaken).



More information about the Digitalmars-d mailing list