3 ms·
Yeah, it's sort of historic. I like to joke that renaming String to StrBuf is my only wish for Rust 2.0. That said, if anything, it would be StrBuf and str, be
by steveklabnik 11y ago
Yeah, it's sort of historic. I like to joke that renaming String to StrBuf is my only wish for Rust 2.0.
That said, if anything, it would be StrBuf and str, because str is a primitive type, hence the lower case. It almost wasn't a primitive type, but there were drawbacks, so we kept it as one.
- bjz_ 11y agoWhat were the drawbacks?
- steveklabnik 11y agohttps://github.com/rust-lang/rust/pull/19612 https://github.com/rust-lang/rust/pull/19612
- Manishearth 11y agoI believe that StrBuf or something similar was the name for a short time after the ~str removal.