2 ms·
Bounds checked at runtime (unless you use the unsafe sublanguage). Without dependent types (which I feel would exceed our complexity budget) we can't do much be
by pcwalton 13y ago
Bounds checked at runtime (unless you use the unsafe sublanguage). Without dependent types (which I feel would exceed our complexity budget) we can't do much better.
However, for simple iteration, if you use iterators idiomatically instead of C-style for loops then you won't incur any bounds checks.
- mcguire 13y agoI was just about to accuse you of dependent typing.