DIP1000: Walter's proposal to resolve ambiguity of ref-return-scope parameters

Dukc ajieskola at gmail.com
Thu Nov 25 08:12:16 UTC 2021


On Thursday, 25 November 2021 at 05:02:44 UTC, Paul Backus wrote:
> On Wednesday, 24 November 2021 at 23:50:13 UTC, Dennis wrote:
>> What do you think of this proposal?

> IMO we should only do this if we also apply it to `return ref`, 
> and deprecate the `return` attribute in any position other than 
> immediately before `ref` or `scope`—i.e., we essentially make 
> `return ref` and `return scope` into "compound keywords".

That is a good idea IMO. Might require a deprecation period for 
`return !(ref / scope)` though.

This raises a question: will `return ref return scope` become 
allowed?




More information about the Digitalmars-d mailing list