DIP66 - Multiple alias this
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Wed Sep 30 00:50:02 UTC 2020
On 9/29/20 8:46 PM, Andrei Alexandrescu wrote:
> On 9/29/20 2:37 PM, IGotD- wrote:
>> On Tuesday, 29 September 2020 at 09:21:42 UTC, IGotD- wrote:
>>> On Monday, 28 September 2020 at 18:44:51 UTC, H. S. Teoh wrote:
>>>>
>>>> `alias this` is one of the things that seemed like a good idea at
>>>> the time, but is turning out to be something that leads to code
>>>> smells. If anything, we'd like to get rid of it rather than extend it!
>>>>
>>>>
>>>> T
>>>
>>> As it seems, the language maintainers want to remove alias this
>>> totally. If that's the case shouldn't the documentation be updated
>>> telling the programmers that if they write new code they should avoid
>>> alias this, and then also direct them to alternative solutions.
>>
>> Further more, this in the "alias this" documentation.
>>
>> "Multiple AliasThis are allowed. For implicit conversions and
>> forwarded lookups, all AliasThis declarations are attempted; if more
>> than one AliasThis is eligible, the ambiguity is disallowed by raising
>> an error. Note: Multiple AliasThis is currently unimplemented."
>>
>> which is totally out of date, needs to be removed.
>
> Ouch. A PR to change that would be in order regardless of future actions.
Time waits for no one.
https://github.com/dlang/dlang.org/pull/2862
More information about the Digitalmars-d
mailing list