Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
paperplatter
· 2y ago · 0 comments
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.
Comments
[–]
fauigerzigerk
2y ago
Yes. At least references are still part of the variable type and therefore likely to be closer to the call site.