News for hackers. Stuff that matters.
Re:Rust needs to run, and be easy to use, on every platform by weirdwitch on Thursday March 08, 2018 @02:22PM (#16546865)
I completely agree.

Path/PathBuf have better names, but the distinction still isn't immediately obvious.

String/str is the cause of so much confusion.

Re:Rust needs to run, and be easy to use, on every platform by steveklabnik on Thursday March 08, 2018 @02:27PM (#16546902)
I often joke that str/StrBuf is my one wish for a Rust 2.0, but 2.0 will never happen.

This confusion is why we reorganized the book to talk about String and &str very early on, and use them to teach ownership and borrowing.

Re:Rust needs to run, and be easy to use, on every platform by Retra on Thursday March 08, 2018 @09:25PM (#16549410)
It took me like 2 seconds to learn it and haven't been confused since. So... maybe I'm just a grade A genius.