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

IchorDev zxinsworld at gmail.com
Sun Nov 20 16:21:09 UTC 2022


On Friday, 18 November 2022 at 19:33:05 UTC, H. S. Teoh wrote:
> Here's my proposal: use `.` instead of `$`, and if .identifier 
> is
> ambiguous in any way at all, prohibit ITE and require spelling 
> out the
> enum in full. I.e., prohibit it if there's any ambiguity at all 
> with a
> module name, any global identifier, or it can be a member of 
> multiple
> enums currently in scope.

This could break pre-existing code, so it's a definite no 
unfortunately. I don't want to break working code just to add a 
convenient shortcut. That's like having a highway built through 
your house!



More information about the Digitalmars-d mailing list