4 ms·
my take -- i actually like C (despite its warts) because the mental model of the compiler is small and i can usually reason correctly about what will happen.
by woodrowbarlow 2y ago
my take --
i actually like C (despite its warts) because the mental model of the compiler is small and i can usually reason correctly about what will happen.
in rust, it's certainly possible for an inexperienced developer to attain the same level of intuitive reasoning, but the mental model for the compiler is orders of magnitude larger. ultimately, rust wants the user to trust the compiler, rather than understand the compiler.
zig embraces the small mental model and gets rid of almost every C wart (in my eyes). fewer built-in guarantees, but less magic.
- Brian_K_White 2y ago"magic" is a dirty word but sounds like a good word. I like to call it UB, Unexpected Behavior, pretty much just as bad as the usual UB.