first draft Reducing the legal permutations of ref-return-scope

Meta jared771 at gmail.com
Tue May 13 19:39:18 UTC 2025


On Tuesday, 13 May 2025 at 18:57:21 UTC, Walter Bright wrote:
> The implicit `this` declaration is another source of confusion. 
> I've been toying with the idea of allowing it to be part of the 
> parameter list.

That is a great idea; I've wanted it in D for a long time. We 
could even extend it so a hypothetical "explicit this" syntax 
applies to free functions as well, and enables UFCS, although 
that's probably too much of a breaking change.


More information about the dip.development mailing list