2 ms·
At compile time or run time?
by mcguire 13y ago
At compile time or run time?
- pcwalton 13y agoBounds 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.