Hacker News new | ask | show | jobs
by Twisol 2446 days ago
In Rust, you can tell whether something is borrowed from the call site, without having to look at the function being called. If a function takes a reference (`&T`), then the caller must pass a reference. There's no implicit by-referencing as in C++'s `&` types.

(I realize you, saagarjha, probably know this already -- this is more a note to other readers.)