3 ms·
This is a straw man of the article though. It's a discussion of string representation and Rust language features - decisions that were motivated by C. This isn
by maxbond 4y ago
This is a straw man of the article though. It's a discussion of string representation and Rust language features - decisions that were motivated by C.
This isn't an article about why you should use Rust, it's about strings in Rust.
- HarHarVeryFunny 4y ago> This isn't an article about why you should use Rust, it's about strings in Rust. Well, the article literally has more C code in it than Rust, so it sure seems to be about comparing Rust to C. Why the author thought it would be useful to compare Rust's strings to C, a language that literally doesn't even have a string type is beyond me. Kind of like saying "Look how fast I can run! Even faster than a walrus!"
- maxbond 4y agoLike I explained, it's difficult to understand Rust's language design - especially why it has multiple string types - without understanding C. Really, it's difficult to understand the decisions of most languages, without understanding C.