Discussion Thread: DIP 1044--Enum Type Inference--Community Review Round 1

deadalnix deadalnix at gmail.com
Wed Nov 23 11:57:48 UTC 2022


On Tuesday, 22 November 2022 at 21:44:00 UTC, XavierAP wrote:
> On Friday, 18 November 2022 at 18:54:01 UTC, monkyyy wrote:
>>
>> Ds enum syntax is verbose compared to c; and the code block 
>> probaly isnt possible to write
>
> I know I'm not teaching anything that's not known, but 
> languages such as D, modern C++, C# etc requiring enums to be 
> qualified, was absolutely intentional. And IMHO the reasons 
> (against the C syntax) stand.

And wait, there is more: we have anonymous enums:

```d
enum { A, B }
```

For these who are allergic to named enums.


More information about the Digitalmars-d mailing list