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

Tejas notrealemail at gmail.com
Wed Nov 23 16:22:35 UTC 2022


On Wednesday, 23 November 2022 at 16:11:32 UTC, Daniel N wrote:
> 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".

Please post this on discussion thread

This thread is for pointing out flaws in presentation/clarity of 
the DIP, not discussing it's merits


More information about the Digitalmars-d mailing list