Where are we on getting rid of Nullable's alias this? Was that happening?
FeepingCreature
feepingcreature at gmail.com
Mon Jun 3 09:28:07 UTC 2019
On Thursday, 30 May 2019 at 18:23:54 UTC, Jonathan M Davis wrote:
> On Thursday, May 30, 2019 8:39:05 AM MDT aliak via
> Digitalmars-d wrote:
>> I'm not sure if there's a workaround. I remember there was
>> talk of removing alias this in Nullable? But I also remember
>> there was no consensus?
>
> I don't think that there was ever a consensus on it (mostly
> just one person being really vocal about IIRC). But regardless,
> IIRC, what prevented it from going any further was that
> deprecating the alias resulted in deprecation messages when the
> alias was checked by the compiler even if it wasn't actually
> used in the code, meaning that you got a lot of extraneous
> deprecation messages. I believe that the bug was reported, but
> I don't know what its status is.
>
> - Jonathan M Davis
I've tried to make a PR for it just now, and there don't seem to
be any outstanding issues preventing deprecating `alias get this`
aside issue 19936, for which I have a PR on stable and which
should hopefully be merged soonish. As soon as that's done, I'll
start a PR to deprecate `alias get this` to hopefully spur
discussion about why this is definitely the right way to go
forward and why all the people who like `alias get this` are
wrong (if there are any). :)
More information about the Digitalmars-d
mailing list