|Posted by Imperatorn|
in reply to Paul Backus
Posted in reply to Paul Backus
On Thursday, 25 November 2021 at 15:59:41 UTC, Paul Backus wrote:
On Thursday, 25 November 2021 at 15:27:20 UTC, Imperatorn wrote:
On Thursday, 25 November 2021 at 15:05:55 UTC, zjh wrote:
On Thursday, 25 November 2021 at 14:40:09 UTC, Dennis wrote:
I don't consider that clean.
I usually use
C++ has no similar
It's like the
C++ versus the
& is much simpler than
It would be nice if
d had some
symbols/sugar syntax to simplify these attributes.
I wonder what the reason was to choose ref instead of &. Maybe it's kinder to the parser.
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