Why can't stride be 0?

Another difference between Swift and Rust is that Swift doesn't always monomorphize, so tolerating zero strides would incur an extra dynamic check on every unspecialized array iteration.

5 Likes