Non-nullable references, again

bearophile bearophileHUGS at lycos.com
Wed Dec 31 10:19:09 PST 2008


Denis Koroskin:
> A nicer syntax is suggested (the one used by C#):
> Foo nonNull = new Foo();
> Foo? possiblyNull = null;

That syntax is now used by various other languages, it's slowly becoming a kind of standard in modern languages that support some form of OOP. Eventually D too will probably grow it (or something close, maybe with another symbol).

Bye,
bearophile



More information about the Digitalmars-d mailing list