Hacker News new | ask | show | jobs
by paperplatter 632 days ago
Refs in C++ go against this, right? At the call site, it's not clear that you're passing in a ref instead of a value. I don't mind it too much cause at least the rules are the same for everything, not different for structs vs classes.
1 comments

Yes. At least references are still part of the variable type and therefore likely to be closer to the call site.