Option!T
monarch_dodra
monarchdodra at gmail.com
Tue Dec 10 10:59:25 PST 2013
On Tuesday, 10 December 2013 at 17:28:26 UTC, Andrei Alexandrescu
wrote:
> We have only(x) (http://dlang.org/phobos/std_range.html#.only)
> to be a collection of exactly one value, but not a type for "a
> value of type T or nothing at all"
Option is being upgraded to handle an arbitrary (but compile time
known) amount of values:
https://github.com/D-Programming-Language/phobos/pull/1743
More information about the Digitalmars-d
mailing list