Nullable types

Mehrdad wfunction at hotmail.com
Wed Jun 20 10:43:26 PDT 2012


On Wednesday, 20 June 2012 at 16:52:26 UTC, bearophile wrote:
> Mehrdad:
>
>> Would it be a good addition to Phobos? If not, ideas on what 
>> could be improved?
>
> What are the advantages over this one?
> http://dlang.org/phobos/std_typecons.html#Nullable
>
> Bye,
> bearophile

I thought I mentioned?

1. It uses typeof(null) to _actually_ integrate with _null_, 
instead of making up methods like nullify(), get(), etc.

2. It tries to do what C# does. (opEquals, opCmp, etc.)


More information about the Digitalmars-d mailing list