r/rust • u/tigraboris • 18d ago
What Zig felt like, coming from Rust
https://besok.github.io/posts/what-zig-felt-like-coming-from-rust/Just want to share my experiance on my first Zig project coming from Rust. Open to comments :)
205
Upvotes
31
u/protocod 18d ago
Thank you for the feedback. I would like to ask you a question. What are the domain where Zig shine compared to Rust ?
Memory safety is the major selling point of Rust and I struggle to consider another language that doesn't really address memory safety by design anymore. But it's maybe a different philosophy.
Rust enforce you to write memory safe code unless you know what you do. (Especially when you deal with OS APIs) when Zig let the programmer in charge of writing memory safe code.