My two cents
Martin Nowak
code at dawg.eu
Fri Oct 20 14:54:53 UTC 2017
On Friday, 20 October 2017 at 08:09:59 UTC, Satoshi wrote:
>>> > return foo ?? null; would be so much easier.
Definitely the Elvis operator is a small and sometimes useful
addition.
https://en.wikipedia.org/wiki/Elvis_operator
Your best bet on getting it, is writing a small DIP, the organize
consensus for the exact semantics to get it approved.
https://github.com/dlang/DIPs/
It's seems far from being a high priority though. Actually quite
a pity that of the many valid points you mentioned, the majority
of the discussion focuses on this triviality.
But as usual, when it's cheap to have an opinion, everyone
affords one.
Hence if you want to change sth. get your DIP approved. I'd even
volunteer for the compiler implementation of `?:`.
More information about the Digitalmars-d
mailing list