Worst ideas/features in programming languages?

Timon Gehr timon.gehr at gmx.ch
Thu Jan 6 13:37:38 UTC 2022


On 1/6/22 08:14, bauss wrote:
> 
> You could just make sure that the root type is always used if an 
> overload is available for it.
> 
> Just like if you did:
> 
> ```d
> struct S {
>    string opArgs;
>    alias opArgs this;
> }
> ```


(But in general, yes, using `alias this` was my initial proposal and I 
once thought it's more or less viable, but Walter shot that down already.)


More information about the Digitalmars-d mailing list