Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
stefncb
· 3y ago · 0 comments
Zig has bounds checking built-in. You can decide to remove it if you compile for ReleaseSafe instead of ReleaseFast, but it's always in debug builds.
Comments
[–]
throwawaymaths
3y ago
Also note that you can compile your entire program in safety checked mode and compile functions with hot loops with release fast
[–]
stefncb
OP
3y ago
I just realized I swapped the two but it's too late. The bounds checks obviously stay in ReleaseSafe, not ReleaseFast.