Null references

Carl Sturtivant sturtivant at gmail.com
Tue Aug 21 07:08:23 PDT 2012


>> On the other hand, the suggested syntax of 
>> "bob?.department?.head?.name" from Kotlin is pure genius, and 
>> has a
>> good chance of actually being used.
> 
> Absolutely. Probably hard to include in D though, as a ? .b is 
> the beginning of a conditional expression.

How about

   bob??.department??.head??.name




More information about the Digitalmars-d mailing list