DIPX: Enum Literals / Implicit Selector Expression

bauss jj_1337 at live.dk
Tue Jul 5 06:34:35 UTC 2022


On Tuesday, 5 July 2022 at 01:15:28 UTC, Steven Schveighoffer 
wrote:
>
> The literal syntax distinguishes it from everything else. My 
> strawman was `#value`, but really, any not-already-used syntax 
> will do. `.value` is not available, neither is `value`.
>
> -Steve

Perhaps : could work as `:value` isn't currently a reserved 
syntax today, unless something comes before, so it should 
definitely work in this case.

It also looks less clunky than #.


More information about the Digitalmars-d mailing list