News for hackers. Stuff that matters.
Re:Getting Past “Ampersand-Driven Development” in Rust by Joeboy on Thursday March 09, 2023 @09:51AM (#35081745)
I think it's, um, borrowed from C++'s pass by value / reference syntax. To be honest I'm still a bit muddled about how &x in Rust relates to &x in C++.
Re:Getting Past “Ampersand-Driven Development” in Rust by jeremyjh on Thursday March 09, 2023 @10:08AM (#35081939)
& is about the same as const & in C++, just swapping the default for immutability.