3 ms·
As a rough high level overview: Rust is what you might imagine if starting over from scratch with C++, with a big emphasis on memory and type safety. Zig is m
by gameswithgo 6y ago
As a rough high level overview:
Rust is what you might imagine if starting over from scratch with C++, with a big emphasis on memory and type safety.
Zig is more like starting over from scratch with C, with a moderate emphasis on safety (no garbage collection or borrow checker, but undefined behavior handled more sanely than C)
- k__ 6y agoI had the impression Rust was more compatible with C than C++.
- pcwalton 6y agoWell, every language is more compatible with C than C++, because C is a subset of C++†. Even C++ is more compatible with C than with C++ compiled with a different compiler :) † I know it's not a subset, but near enough for our purposes.