3 ms·
I wish they had been named &path and Path instead, it would feel more consistent than String, &str, PathBuf, &Path
by dralley 6y ago
I wish they had been named &path and Path instead, it would feel more consistent than String, &str, PathBuf, &Path
- steveklabnik 6y agoI joke the only way that I'll sign off on Rust 2.0 is if we get to do the exact opposite, rename String to StrBuf, haha! (Same reason though, for consistency.)
- NanoCoaster 6y agoI'd actually love something like that, mostly because differentiating between "str" and "String" in, uh, speech can be pretty annoying. They both sound the same! :) I've taken to calling "String" "owned string" but that's a little unwieldly and not quite suited for complete Rust beginners who don't know the concept of ownership yet. Same with "string reference" for "str".
- deleted 6y ago[deleted]