Plurrrr

Sat 11 Mar 2023

Getting Past “Ampersand-Driven Development” in Rust

I heard the phrase “ampersand-driven development” in a talk by Tad Lispy, and it immediately captured the experience of a new Rust developer randomly inserting ampersands to appease the Rust compiler.

This blog post describes a little mental model I used to explain to someone new to Rust the difference between &, &mut, owned values, Rcs, and Arcs. I hope that you or other aspiring Rustaceans find it helpful!

Source: Getting Past “Ampersand-Driven Development” in Rust, an article by Evan Schwartz.