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

IchorDev zxinsworld at gmail.com
Sun Nov 20 16:23:14 UTC 2022


On Saturday, 19 November 2022 at 02:06:57 UTC, ryuukk_ wrote:
> Have you ever tried Vulkan? (graphics library)
>
> The amount of ugly code one has to write due to verbose 
> enum/struct name is disgusting
>
> Also D already supports designated initialization for structs, 
> it's kinda similar in principle, and it is super useful

I've run into cases like this a LOT. C library bindings that have 
enums with ridiculously long redundant names like 
`vegetable_t.vegetable_carrot` are abundant.
Also yes I've used Vulkan's API... never again. My head still 
hurts.


More information about the Digitalmars-d mailing list