3 ms·
Many people love C for its simplicity but dislike some footguns of C like lack of bounds checks, lots of undefined behaviour, lack of modern features like packa
by mindwok 3y ago
Many people love C for its simplicity but dislike some footguns of C like lack of bounds checks, lots of undefined behaviour, lack of modern features like package management and easy cross compiling etc. When Rust came along it solved a lot of the pain points but is more similar to C++ with its large feature set and standard library, generics, powerful macros etc. which was never embraced by this crowd because it was a different approach to C's simplicity and minimalism.
Zig is kind of a sweet spot for those who prefer the simplicity of C but want something more modern. On top of that it has some cool novel approaches to some things, like comptime for generic programming and custom allocators supported by the standard library that make it interesting enough on its own anyway. Plus,