Member-only story
Rust Just Got An Awesome Update!
3 min readJan 14, 2022
Welcome back! Rust is an awesome programming language with a ton of capability, if you’re new to Rust, check out the link below to learn more about it:
Yesterday, the latest version of Rust actually came out, Rust 1.58! Check out the link below to see their entire release log of this update:
So, let’s talk about some of the newest changes to this update!
Capturing Identifiers In Formatted Strings
This new version of Rust brings a really cool feature, we now have the ability of capturing arguments by writing “{ident}”! Here is an example:
println!(“Hello, {}!”, get_person()); // implicit position
println!(“Hello, {0}!”, get_person()); // explicit index
println!(“Hello, {person}!”, person = get_person()); // named