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

Daniel N no at public.email
Wed Nov 23 16:11:32 UTC 2022


On Friday, 18 November 2022 at 15:38:59 UTC, Mike Parker wrote:
> ## Feedback Thread
>
> This is the feedback thread for the first round of Community 
> Review of DIP 1044, "Enum Type Inference".
>
> **THIS IS NOT A DISCUSSION THREAD**
>

I'm against this DIP because...

1) using new symbols $(or any other unused symbol) for a minor 
feature is wasteful, compared to adding new meta/codegen features 
etc.

2) Implicit 'with' for switch statements as proposed by Walter is 
more elegant and doesn't require any new symbols/syntax and is 
also more efficient from a compiler performance perspective as $ 
could refer to any enum, whereas the implicit 'with' only adds 
one enum.

I propose changing the DIP to "implicit with".



More information about the Digitalmars-d mailing list