3 ms·
For those reading only the beginning, one could think that Matt is endorsing Zig over Rust. It's not that, from the article: > It’s not true that rewriting a R
by Ciantic 4y ago
For those reading only the beginning, one could think that Matt is endorsing Zig over Rust. It's not that, from the article:
> It’s not true that rewriting a Rust program in Zig would make it simpler. On the contrary, I expect the result to be significantly more complex (and segfaulty). I noticed that a lot of Zig code written in “let’s replace RAII with defer” style has resource-management bugs.
I also have read Matt's "Hard Mode Rust", and I think there needs to be a better way. Why can't we have flexible language that can span both styles of allocating resources? I also wonder what TigerBeetle would look like if it were written in Rust using the "Hard Mode".
- fanf2 4y ago“Matt” is not his name https://matklad.github.io/about.html https://matklad.github.io/about.html