|
|
|
|
|
by shp0ngle
2016 days ago
|
|
Zig also has undefined behavior. See whole section here https://ziglang.org/documentation/master/#Undefined-Behavior the difference is, they try to check for them at compile time, and if you compile with safety checks, also at runtime; however, if you compile with ReleaseFast (which I assume most people will in production), those runtime checks are turned off and the undefined behavior still exists. |
|
No, people are supposed to use ReleaseSafe, especially "in production". You can still disable runtime checks in specific execution paths.
ReleaseFast is for applications where there are no disastrous consequences to a bug in the code, like videogames.