Comment

Comment by lelanthran

Funnily enough, when I joined a C++ team about 4 years ago I could never get any senior dev to move away from using references instead of const pointers.

Reference parameters are awful; the reader has no idea whether the argument will be modified or not without reading the header file.

With const pointers you never have this problem.

parent lelanthran 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton