News for hackers. Stuff that matters.
Re:Getting Past “Ampersand-Driven Development” in Rust by sebbyy on Thursday March 09, 2023 @10:21AM (#35082095)
Because Rust is pass by value.

  f(&s);
is practically equal to

  let r = s.borrow();
  f(r);
Re:Getting Past “Ampersand-Driven Development” in Rust by BiteCode_dev on Thursday March 09, 2023 @10:37AM (#35082306)
If I ask why is the sky blue, telling me because blue is the color or the sky doesn't help.