DIPX: Enum Literals / Implicit Selector Expression
ryuukk_
ryuukk.dev at gmail.com
Sat Jul 2 21:24:30 UTC 2022
Just right now i got annoyed with enums again while porting an
old library

```D
ctx.allocator.create!(JSONValue)(JSONValue.ValueType.NULL)
```
vs
```D
ctx.allocator.create!(JSONValue)(.NULL)
ctx.allocator.create!(JSONValue)(#NULL)
ctx.allocator.create!(JSONValue)(_.NULL)
```
Unnecessary repetitions and verbosity in my opinion
I could put the with() next to the switch, but still, it's moving
the problem
More information about the Digitalmars-d
mailing list