We had a talk at RustConf previously about the Xi editor; it uses an immutable data structure to handle text. It's a video but the author lays out the details here: ▶ this video They make an interesting argument about how Rust makes it easier and nicer to write these kinds of structures. It's still an area of exploration in Rust generally though; I wouldn't say immutable data structures are idiomatic, but that's also just because we haven't had a ton of easy ones to use, so nobody uses them. So we'll see!
in “Immutable.rs: immutable data structures for Rust” · View on HN