Hi, everyone.

```
import std.typecons : Nullable;

class Test {}

Nullable!Test test;
assert(test.isNull);
```

Why does `Nullable` allowed to be used with reference types (e.g. classes)?

P.S. I have experience with C#, where `Nullable<T>` cannot be used with reference types. And it sounds logical to me.

Reply via email to