I'm somewhat amused at the bit in the Rust book where it discusses arrays. It pr...
Alex Hall @alexhall@mastodon.social
I'm somewhat amused at the bit in the Rust book where it discusses arrays. It proudly explains that Rust protects against accessing memory by stopping you from accessing elements past the bounds of an array. Apart from a tiny bit of C I don't really remember, I don't think I've ever used a language that didn't throw some sort of out of bounds error for arrays. It's good that Rust does this, but the text makes it sound like Rust is one of the few that bothers.