D Language Foundation January 2023 Quarterly Meeting Summary
jmh530
john.michael.hall at gmail.com
Mon Feb 27 16:27:34 UTC 2023
On Monday, 27 February 2023 at 15:39:35 UTC, Dom Disc wrote:
> On Monday, 27 February 2023 at 14:27:25 UTC, bachmeier wrote:
>> On Monday, 27 February 2023 at 10:47:04 UTC, Mike Parker wrote:
>>
>>> Razvan [submitted a PR deprecating `alias this` in
>>> classes](https://github.com/dlang/dmd/pull/14812) the next
>>> day. Amaury [initiated a forum
>>> discussion](https://forum.dlang.org/thread/roaaoujwgkzednetbndp@forum.dlang.org) a few days later.
>>
>> Is there a replacement?
>
> Yes. And there always was: In classes this was only an
> additional way to do, what should better be done with
> inheritance.
Generally speaking, I agree, but it does add a little bit of
mental overhead for a user if they want to change from struct to
class. Hopefully the error message of a class alias this points
users in the direction of inheriting instead.
More information about the Digitalmars-d-announce
mailing list