D community's view on syntactic sugar

Seb seb at wilzba.ch
Sat Jun 16 00:53:53 UTC 2018


On Saturday, 16 June 2018 at 00:32:24 UTC, H. S. Teoh wrote:
> 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

https://forum.dlang.org/post/ot1q8b$23pt$1@digitalmars.com
https://github.com/dlang/dmd/pull/7242

I think Razvan focused on other projects no one else bothered 
enough to write a DIP about this.


More information about the Digitalmars-d mailing list