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

12345swordy alexanderheistermann at gmail.com
Wed Nov 23 15:13:09 UTC 2022


On Wednesday, 23 November 2022 at 11:57:48 UTC, deadalnix wrote:
> 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.

That doesn't work when interacting with existing c code base here.


More information about the Digitalmars-d mailing list