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

Paul Backus snarwin at gmail.com
Thu Nov 25 16:08:27 UTC 2021


On Thursday, 25 November 2021 at 16:05:01 UTC, Imperatorn wrote:
> On Thursday, 25 November 2021 at 15:59:41 UTC, Paul Backus 
> wrote:
>>
>> If you are new to D and don't already know C++, `int&` will 
>> mean nothing to you, whereas you have at least a chance of 
>> guessing what `ref int` means just from reading it.
>
> So it was more of a readability thing then

I'm only guessing, but I suspect it's a combination of (a) 
readability, and (b) consistency with other storage classes 
(which are all words, not punctuation).


More information about the Digitalmars-d mailing list