Alternative Possibility - Implicit with

TheGag96 thegag96 at gmail.com
Mon Nov 21 16:25:45 UTC 2022


On Monday, 21 November 2022 at 15:48:55 UTC, Paul Backus wrote:
> `#` is used to indicate the start of a [special token 
> sequence][1].
>
> [1]: https://dlang.org/spec/lex.html#special-token-sequence

Wow. Only barely recalled ever seeing this feature from the 
depths of my memory. Thanks, lol. That's a shame...

I like this proposed feature, but I don't know if I like the `$` 
syntax. At first blush it's a bit ugly looking and might clash 
visually somewhat with the `$` operator. The `enum.` suggestion 
isn't super bad but it's a bit wordy. Regardless I think it would 
be super nice to have parity with other languages with regard to 
less wordy enum usage.


More information about the Digitalmars-d mailing list