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

zjh fqbqrr at 163.com
Fri Nov 26 01:05:39 UTC 2021


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.

`ref` is a very simple concept. It is similar to `alias`. It is 
easy for beginners to understand, `alias and nickname`, who 
doesn't understand?
Obviously `&` is much simpler than `ref`, and even more funny, 
some people doubt `||` and `&&` and want to replace it with 
`and/or`.
Clearly see the symbols, you understand it.
but I don't understand, Why should I use words?
Like `py`, full of `self/and/or`, it looks like an ugly design. 
Does anyone like it?



More information about the Digitalmars-d mailing list