|
|
|
|
|
by self_awareness
19 days ago
|
|
Yeah, but argumenting that "Bun codebase is a mess" is anti-Zig in itself. The whole point of the borrow checker is to make it impossible to write wrong code. If Zig accepts bad code, but assumes people will have self-discipline to maintain it, how is that different from C? C assumes good discipline, as well as C++. But it will happily accept bad code. So I'm not even sure what Zig is even improving on. Rust was designed to answer this exact problem (among a few others of course). So the argument "your code is fscking sheet" is very 1990's. In 2026 we need guarantees that we can't produce invalid code. |
|
> In 2026 we need guarantees that we can't produce invalid code.
Rust doesn't provide either of those guarantees.
If I were to rephrase your sentiment for accuracy: Rust disallows certain coding patterns. Certain classes of bugs can only appear in those coding patterns.
IOW, Rust disallows $FOO which is a superset of "specific class of errors". This means that while Rust prevents specific bugs, as a side-effect it will also prevent some correct code.