Worst ideas/features in programming languages?
Timon Gehr
timon.gehr at gmx.ch
Tue Nov 16 02:17:47 UTC 2021
On 15.11.21 19:04, Q. Schroll wrote:
> On Tuesday, 12 October 2021 at 21:50:11 UTC, surlymoor wrote:
>> On Tuesday, 12 October 2021 at 21:38:48 UTC, Timon Gehr wrote:
>>> - .init
>>
>> Is the issue default initialization or that the property is named `init`?
>
> The fact that the default value of a type `T` is `T.init` and `init`
> isn't even a keyword leading to all the problems it has, when it could
> have been `default(T)` is really embarrassing.
That's not close to all the problems and at least you can `@disable enum
init = 0;` now.
More information about the Digitalmars-d
mailing list