Hacker News new | past | comments | ask | show | jobs | submit login

> Personally, I remember fighting with impedance issues with the many different string types of Rust.

It's because Rust gives very low-level control over strings. If what you want is a string the same way as they work in other languages, including D, then use String. If you want very fine control over memory allocation or want the string to be fixed length, then you use a type that guarantees those properties.

String will work with anything, at the cost of having little control over its allocation or representation.




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

Search: