Y
Hacker News
new
|
ask
|
show
|
jobs
by
samdoesnothing
205 days 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.
1 comments
yoyohello13
205 days ago
Come 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.
link
samdoesnothing
205 days ago
I'm not blaming the compiler, of course programmers can explicitly write incorrect code in any language. It's not Rust's fault.
link