Non-nullable references, again

Daniel Keep daniel.keep.lists at gmail.com
Wed Dec 31 09:26:20 PST 2008



Don wrote:
> Denis Koroskin wrote:
> [snip]
>>
>>> A nicer syntax would be appreciated, but probably isn't a 
>>> requirement.  :)
>>>
>>>    -- Daniel
>>
>> A nicer syntax is suggested (the one used by C#):
>>
>> Foo nonNull = new Foo();
>> Foo? possiblyNull = null;
> Wouldn't this cause ambiguity with the "?:" operator?

That's why I didn't suggest it.  This wouldn't be the only 
context-sensitive bit of grammar C# has.

I think "@" and "%" are still up for grabs, but aren't particularly 
attractive...

   -- Daniel



More information about the Digitalmars-d mailing list