Editions Ideas

monkyyy crazymonkyyy at gmail.com
Mon Dec 15 17:45:22 UTC 2025


On Monday, 15 December 2025 at 16:59:07 UTC, Lance Bachmeier 
wrote:
> On Monday, 15 December 2025 at 12:26:04 UTC, Nick Treleaven 
> wrote:
>> On Saturday, 13 December 2025 at 21:25:29 UTC, Sadiel wrote:
>>> - alias this
>>
>> For classes, maybe it would be sufficient to:
>> 1. Forbid alias this from producing anything that implicitly 
>> converts to Object.
>> 2. Forbid alias this if a superclass has already defined it.
>>
>> For structs, I think there was some plan to replace it, but I 
>> never saw details.
>
> Walter has indicated a desire to not use editions as an excuse 
> to ruin the language.
>
> alias this with structs is very useful. There is no reason to 
> remove it or make it unusable just because a few people think 
> it can be dangerous. One might also argue that pointers are 
> dangerous, but that's not an argument for removing them. 
> Removal of alias this would make the language unusable for me.

Thats optimistic, editions will reopen any ongoing compromise 
that happened due to "backwards compatibility", get ready to 
reargue for any such positions


More information about the Digitalmars-d mailing list