First Draft: ref For Variable Declarations
zjh
fqbqrr at 163.com
Mon Apr 15 01:30:55 UTC 2024
On Sunday, 14 April 2024 at 00:04:13 UTC, Witold Baryluk wrote:
>
>
> I would say that ref variables is the worst C++ feature from
> all its "features".
>
Unless necessary, `C++` actually does not advocate pointers. The
various facilities in `C++` allow you to avoid pointers. Pointers
are too `low-level`.
`References` in `C++` is very common.
I think it's best to find a `simpler way` to express reference in
D, or use it like C++'s `&`, otherwise`ref` would be too ugly.
More information about the dip.development
mailing list