Encoding unit — one grounded idea

1 In Mojo, arguments are borrowed by default, and the 'owned' keyword must be used to transfer ownership, unlike Rust where all arguments take ownership by default.
“In Mojo, all the arguments are borrowed by default. So, you have to use this owned keyword to get that behavior. Now, the term that often confuses people is an R value that comes from C.”
spoken · 521s · 2024-05-13 · en-US · Modular · Mojo🔥: a deep dive on ownership with Chris Lattner
id: 7ce6efab7f93513d
concepts in this idea