3 ms·
Slices in zig are a fat pointer with a runtime known length, which have bounds checking at runtime and will panic if you access out of bounds. Unless you build
by wredue 3y ago
Slices in zig are a fat pointer with a runtime known length, which have bounds checking at runtime and will panic if you access out of bounds.
Unless you build in releasefast, which disables that check. There is releasesafe for a release build that keeps bounds checking panics.