3 ms·
This is a silly way of comparing these languages. Zig and rust are both modern iterations of low level languages. Rust chooses safety with more complex syntax
by brigadier132 3y ago
This is a silly way of comparing these languages.
Zig and rust are both modern iterations of low level languages.
Rust chooses safety with more complex syntax. Zig chooses a less complex syntax with less safety.
- jadodev 3y agonah this is a pretty normal way to compare languages. rust's "complex" syntax can mostly be attributed to its semantics https://matklad.github.io/2023/01/26/rusts-ugly-syntax.html https://matklad.github.io/2023/01/26/rusts-ugly-syntax.html safety can also mean a lot of different things: https://andrewkelley.me/post/unsafe-zig-safer-than-unsafe-rust.html https://andrewkelley.me/post/unsafe-zig-safer-than-unsafe-ru...
- brigadier132 3y agoHow is it a good way to compare the languages when Rust is nothing like C++?
- jadodev 3y ago... wat? imperative; compiled to machine code, either static exe or dynamic libs; builtin RAII & polymorphism (parametric, subtyping); maps, vectors, trees, and other data structures in the stdlib; raw access to pointers; C ABI compat. there are some big differences, but "nothing like c++" is absolutely not true.