Working with strings in Rust
When I started learning Rust, I struggled a bit with choosing the right type for different situations. I think this comes from spending a lot of time working only with high-level programming languages like TypeScript. In TypeScript, a string is just a string, so there’s no need to overthink it. Over time, I’ve developed my own rules based on my successes and failures. Recently, I came across a blog post by Steve Klabnik that I found really insightful. If you’re interested in a deeper explanation, I highly recommend checking it out. He presents some progressive, level-based rules for working with strings in Rust. ...