5 ms·
> [...] it catches logic errors like this but Rust's type system did catch this error - and then author decided it's fine to panic if this error happens > You
by Patryk27 10mo ago
> [...] it catches logic errors like this
but Rust's type system did catch this error - and then author decided it's fine to panic if this error happens
> You won't see Go or Java developers making such strong claims about their preferred languages.
yess no Java developer ever said that OOP will solve world hunger
- samdoesnothing 10mo ago> but Rust's type system did catch this error - and then author decided it's fine to panic if this error happens The issue is that it wasn't fine to panic, thus Rust did not catch this error.
- yoyohello13 10mo agoCome on now. You can't blame the compiler when the programmer explicitly told the compiler to not worry about it. There is nothing in existence that can protect against something like that.
- samdoesnothing 10mo agoI'm not blaming the compiler, of course programmers can explicitly write incorrect code in any language. It's not Rust's fault.