Rust in the 6.2 kernel
Rust in the 6.2 kernel
Posted Nov 17, 2022 16:46 UTC (Thu) by atnot (guest, #124910)Parent article: Rust in the 6.2 kernel
On an interesting historical note, I recall there were a number of people who wanted to use Box<&str> as an owned string type instead, which would have been both easier to understand and more efficient given that the vast majority of strings are write-once anyway, making the capacity field unnecessary. The current growable string type would still have be kept under it's old StrBuf name. However as I understand this wasn't really possible in the language back then, so a new type was the direction they had to go, somewhat unfortunately I think.
