On Wednesday, 5 February 2014 at 00:12:11 UTC, Shammah Chancellor wrote:
On 2014-02-02 17:30:27 +0000, Namespace said:

Sounds good. But why @nullable instead of C# choice of "Type?" ?

@nullable is not supposed to do the same thing as "Type?" (or rather the syntatic sugar for Nullabe<Type> template). Nullable<type> is to enable Value types to be null. For example: Nullable<Double>

@nullable in D is supposed to allow reference types to contain null. In C# reference types are ALWAYS allowed to be null.

-S

class Foo { }

Foo? f;

It's the same.

Reply via email to