Re:Const all the things?
by cyber_kinetist on Monday January 24, 2022 @12:19PM
(#30060701)
It would be really nice for C++ to add a mandatory “out” keyword for these parameters, just like C#. In that way you are forced to specify that this is an output parameter both at the caller and the callee, which makes things much more explicit and readable.
[ Parent
| on HN ]
This is a great talk by Herb Sutter that goes into this in detail https://www.youtube.com/watch?v=6lurOCdaj0Y