2 ms·
> I find passing by non-const reference error-prone since it is not obvious looking at the calling code that an argument may be modified. VS code makes it pret
by nurettin 3y ago
> I find passing by non-const reference error-prone since it is not obvious looking at the calling code that an argument may be modified.
VS code makes it pretty obvious by adding a visual & prefix to the argument. I hope that kind of visual help becomes widely adopted.