Null references
Simen Kjaeraas
simen.kjaras at gmail.com
Tue Aug 21 07:29:37 PDT 2012
On Tue, 21 Aug 2012 16:08:23 +0200, Carl Sturtivant <sturtivant at gmail.com>
wrote:
>>> 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
I guess that could work. Still won't happen though, but for other reasons.
Also, reminded me of C's WTF operator:
foo ??!??! exit(1);
--
Simen
More information about the Digitalmars-d
mailing list