News for hackers. Stuff that matters.
Re:Swift 6 by paperplatter on Wednesday September 18, 2024 @03:00PM (#41584059)
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.
Re:Swift 6 by fauigerzigerk on Wednesday September 18, 2024 @03:59PM (#41584745)
Yes. At least references are still part of the variable type and therefore likely to be closer to the call site.