[Issue 17440] Nullable.nullify() resets referenced object

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 16 09:50:46 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=17440

--- Comment #13 from Chris Paulson-Ellis <chris at edesix.com> ---
Perhaps it would be helpful to reiterate one of my comments from my original
forum thread linked in comment 8...

<snip>
For those confused as to why you'd want to wrap a Nullable around something
that already has nullable semantics, it's mostly about making APIs that
explicitly declare their optional return values. See:
http://www.oracle.com/technetwork/articles/java/java8-optional-2175753.html
</snip>

If Phobos needs a new Maybe/Optional template - perhaps specialised for class
types - then so be it, but at the moment Nullable is it.

--


More information about the Digitalmars-d-bugs mailing list