Re:A brief introduction to C++'s model for type- and resourc...
by zarkov99 on Friday January 15, 2016 @12:28PM
(#10910704)
Pointers have the advantage of signaling a return value at the call site without having to look up the function prototype.
[ Parent
| on HN ]
Re:A brief introduction to C++'s model for type- and resourc...
by pjmlp on Friday January 15, 2016 @01:35PM
(#10911128)
Which I don't agree with, given the amount of pointers that fly around in C codebases.
You cannot ever known what a pointer is used for.
If the prototype has const, maybe just maybe, assuming the function doesn't cast it away, it is a read only.
So I never bought into this argument.