Get the latest tech news

Matt Godbolt sold me on Rust by showing me C++


Looking at C++ from another angle can create new possibilities using Rust.

I came out at the end thinking that this talk was actually a great way of getting the intuition for how Rust helps you beyond the whole memory safety thing, and that is what this article intends to show. How about forcing the user to handle potential bad conversions caused by the target type not being able to represent the number we have on the string, does that help? The design can save you a lot of brain cycles by not forcing you to think about how to protect your code from the simplest mistakes — the language has your back.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Rust

Rust

Photo of C++

C++

Photo of Matt Godbolt

Matt Godbolt

Related news:

News photo

Ubuntu 25.10 Plans To Use sudo-rs By Default For Memory-Safe, Rust-Based sudo

News photo

Understanding Memory Management, Part 5: Fighting with Rust

News photo

Feather: Feather: A web framework that skips Rust's async boilerplate and jus