Discussion Thread: DIP 1044--Enum Type Inference--Community Review Round 1
TheGag96
thegag96 at gmail.com
Tue Nov 22 15:42:27 UTC 2022
On the topic of the `:ident` syntax: It sounded good at first,
but then I thought about our struct initialization syntax and our
new named arguments syntax:
```d
ColorPair pair = {
fg : :red,
bg : :green,
}
someFunc(fg : :red, bg: :green);
```
Seems kind of ugly. `.identifier` and `#identifier` are the best
options IMO (but both unavailable lol). Implicit is decent I
guess but looks kind of spooky.
More information about the Digitalmars-d
mailing list