News for hackers. Stuff that matters.
Re:Rust 1.100.0 by crabmusket on Thursday November 12, 2026 @08:59PM (#50477118)
This gives me the same feeling as when I saw Rust's map Entry API

https://doc.rust-lang.org/std/collections/hash_map/enum.Entr...

    let mut map: HashMap<&str, u32> = HashMap::new();
    map.entry("poneyland").or_insert(3);
    assert_eq!(map["poneyland"], 3);
It's very ergonomic.

There are no comments on this comment yet.