Get the latest tech news

Two Years of Rust


Reflections on using Rust professionally for two years.

When you copy a command from the documentation and run it, it works, it doesn’t spit out a useless error message that serves only as a unique identifier to find the relevant StackOverflow/Discourse thread. Rust has a really nice solution where errors are represented as ordinary values, but there’s syntactic sugar that means you don’t have to slow down to write if err != nil a thousand times over. Secondly, a change in mindset is useful: a lot of people’s mental model of the borrow checker is as something bolted “on top” of Rust, like a static analyzer you can run on a C/C++ codebase, which just happens to be built into the compiler.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of years

years

Photo of Rust

Rust

Related news:

News photo

Stripe's payment API: The first 10 years (2020)

News photo

‘Silicon Six’ accused of avoiding almost $278bn in US corporation taxes over 10 years

News photo

Apple celebrates 10 years of Activity Rings with special Global Close Your Rings Day limited-edition award