DIPX: Enum Literals / Implicit Selector Expression

max haughton maxhaton at gmail.com
Thu Jun 30 12:37:41 UTC 2022


On Thursday, 30 June 2022 at 12:13:53 UTC, Mike Parker wrote:
> On Thursday, 30 June 2022 at 12:02:15 UTC, ryuukk_ wrote:
>>[...]
>
> I don't. Hijacking existing syntax without change so that it 
> means something else in a different context isn't clean at all.
>
> And opinion is what it comes down to. I'm sure we can each find 
> several people who'd agree with our opposing views on this. Any 
> DIP is going to have to have a stronger justification than that.
>
> Considering how `with` currently doesn't work for this case is 
> a good starting point for finding a justification. (Then again, 
> that's what led me to thinking it's better to enhance `with` 
> instead, and I may not be the only one who goes there, so 
> that's something else to consider in the DIP).
>
> Anyway, just wanted to throw my thoughts out there. If you do 
> get a DIP submitted, good luck!

with expressions are something we would benefit from (and I have 
implemented...). I'll write a DIP at some point.



More information about the Digitalmars-d mailing list