Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I like that Rust's String is not trying to be smart. It makes it predictable and easy to reason about.

Because Rust has &str as the lowest common denominator for all string types, "non-standard" strings aren't difficult to use.



I agree that less smartness is a good thing, it's just that sometimes I get a bit frustrated even with basic usages of Rust's String and &str. It gets easier with time but the first few months were a big struggle.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: