Enum literals, good? bad? what do you think?

Paul Backus snarwin at gmail.com
Thu Jul 22 01:40:07 UTC 2021

On Thursday, 22 July 2021 at 01:12:40 UTC, zjh wrote:
> On Wednesday, 21 July 2021 at 21:04:56 UTC, Walter Bright wrote:
>> On 7/21/2021 12:08 PM, russhy wrote:
>>>> And the default constructor,
>>>> Why can't it like `C++`: `T t;` That's all.
>>>> Many C++ programmers want to have constructors like `C++` as 
>>>> `T t{...};`.
>> It's been discussed many times. It comes up once a year or so.
> I really don't understand. Isn't `d` called `pragmatism`?
> That's so much a little bit of improvement, d  can attract a 
> bunch of c++ people, and I don't know `why not to do it`?
> Some people say that when using `d`, the friction force is 
> small. Since this is an advantage, why not `strengthen` it?
> For the so-called `consistency`? Are you not against what is 
> called `consistency`?

Initialization in C++ is described as a "nightmare" by 
experienced C++ programmers [1]. This is probably not something 
that D would benefit from imitating.

[1] https://www.youtube.com/watch?v=7DTlWPgX6zs

More information about the Digitalmars-d mailing list