D community's view on syntactic sugar

H. S. Teoh hsteoh at quickfur.ath.cx
Sat Jun 16 00:32:24 UTC 2018


On Sat, Jun 16, 2018 at 12:20:35AM +0000, Seb via Digitalmars-d wrote:
> On Friday, 15 June 2018 at 23:04:40 UTC, Sjoerd Nijboer wrote:
> > For someone coming from a C# background there is some seemingly simple
> > syntactic sugar missing from D.
> > 
> > * The null conditional operator `?.`
> 
> e.g. SafeAccess
> 
> https://github.com/BBasile/iz/blob/7336525992cb178ead83a7893a5a54597d840441/import/iz/sugar.d#L1551

Didn't Andrei propose an Elvis operator some time ago?  Whatever became
of that DIP?


T

-- 
Just because you survived after you did it, doesn't mean it wasn't stupid!


More information about the Digitalmars-d mailing list