Twitter Feed: Post

Twitter Feed

@zkat__ ("kat marchán") wrote:

omg omg omg

with quote tweet:

@m_ou_se ("Mara Bos") wrote:

🆕🦀 A new exciting @rustlang feature coming up in Rust 1.58: format argument capturing! 🎉✨

Starting in Rust 1.58, which will be released as stable on January 13, you can refer to variables from within format strings:

let name = "world";
println!("Hello, {name}!");

Examples: