is it regression?

Jonathan M Davis newsgroup.d at jmdavisprog.com
Wed Feb 28 15:07:44 UTC 2018


On Wednesday, February 28, 2018 14:28:47 bauss via Digitalmars-d-learn 
wrote:
> On Wednesday, 28 February 2018 at 13:38:56 UTC, drug wrote:
> > done https://issues.dlang.org/show_bug.cgi?id=18539
>
> I would argue that isn't a regression and that you __should__ use
> the .get and that it's not a workaround, because nullable's
> shouldn't be treated like that type they encapsulate.
>
> std.math members such as approxEqual shouldn't have to take
> nullable into account.

approxEqual shouldn't have to take Nullable into account. The fact that (for
better or worse), Nullable's get is alias this-ed should take care of it.
Given that alias this, it should just work without approxEqual doing
anything. And if get were actually deprecated and removed, then approxEqual
still wouldn't take Nullable into account, since at that point, get would be
called explicitly.

- Jonathan M Davis



More information about the Digitalmars-d-learn mailing list