Current sentiment on Nullable.get
Neia Neutuladh
neia at ikeran.org
Mon Dec 10 17:40:00 UTC 2018
On Mon, 10 Dec 2018 10:01:45 +0000, FeepingCreature wrote:
> Having recently been reminded that `alias Nullable.get this` exists, I'm
> considering a pull request to deprecate it. What's the sentiment on
> `alias Nullable.get this` in the community?
I already thought that Nullable was clunky (!nullable.isNull: is it false
that the thing has no value? -- I just want to know if it has a value).
With that alias, I'm kind of horrified.
Why does this even exist? Why is it Nullable instead of Optional or Maybe?
The thing about null is that it segfaults when you use it, which is not
the key thing about an optional value. Why does it have this automatic bug
pit?
More information about the Digitalmars-d
mailing list