Opportunities for D
w0rp via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 9 13:56:58 PDT 2014
On Wednesday, 9 July 2014 at 20:49:00 UTC, w0rp wrote:
> <much yammering on>
I should note that there is some merit to having Option(T) even
without T being non-nullable by default, as it at least gives you
the ability to look at an API and find out where you'll need to
deal with the None case.
T foo();
U bar();
V baz();
Doesn't say as much as.
T foo();
Option!U bar();
V baz();
Even doing these things without strong compile time checks is a
big step up.
More information about the Digitalmars-d
mailing list