News for hackers. Stuff that matters.
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.
Re:Const all the things? by LeSaucy on Monday January 24, 2022 @12:29PM (#30060864)
This is a great talk by Herb Sutter that goes into this in detail https://www.youtube.com/watch?v=6lurOCdaj0Y