DEV Community

Discussion on: Mutable Arrays in Rust

Collapse
 
geoxion profile image
Dion Dokter

You should prefer the iterator. You're less likely to screw up and the compiler knows your intention better (thus it's possible for it to generate better code).
But it's good you're trying out Rust. I've found it to be a really cool language!

Collapse
 
anilkhandei profile image
Anil Kumar Khandei

Yeah makes sense will do thanks for the direction.