Y
Hacker News
new
|
ask
|
show
|
jobs
by
stefncb
1083 days ago
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.
2 comments
throwawaymaths
1083 days ago
Also note that you can compile your entire program in safety checked mode and compile functions with hot loops with release fast
link
stefncb
1082 days ago
I just realized I swapped the two but it's too late. The bounds checks obviously stay in ReleaseSafe, not ReleaseFast.
link