3 ms·
I don't think it's a mistake in Rust, because of array indices.
by pcwalton 12y ago
I don't think it's a mistake in Rust, because of array indices.
- kibwen 12y agoI'm not convinced that array indexing is the primary use case of integral variables. And since this is the use case most often espoused for ints, they should probably be renamed to something more appropriate (intptr/uintptr? index/uindex? idx/uidx?). And heck, while we're at it, bare numeric literals should probably default to i32 rather than int (as gross as that feels, it's the least bad option that doesn't involve removing numeric literal type inference). But perhaps this is the wrong forum for this discussion. :P