| ▲ | senderista 2 hours ago | |||||||
Part of the safety you get with Rust is runtime bounds checking, which is equivalent to Zig in "safe" mode. | ||||||||
| ▲ | vlovich123 2 hours ago | parent | next [-] | |||||||
Bounds checking is like 1% of the safety that Rust guarantees you. That's a false-equivalence. The bigger ones are around memory safety like use-after-free, double-free, and memory issues in the face of concurrency. Zig does not help you with that. | ||||||||
| ▲ | afdbcreid 2 hours ago | parent | prev [-] | |||||||
Bound checks, which are part of what you get with Rust, also exist in ReleaseSafe Zig, that is true. But if that is what you wanted to say, your statement is very confusing and also does not answer the GP. If you meant to say ReleaseSafe and Rust are equivalent, then this is just false. ReleaseSafe still has many UBs (most importantly use after free and double free), not to mention that Rust solves many problems at compile time and Zig only at runtime. | ||||||||
| ||||||||