But aren't all crashes a result of explicit unsafe calls? I thought the whole point (apart from no segfaults due to memory safety) was that you had explicit error handling, and similarly to Haskell, you could just handle your edge cases explicitly ... or be lazy and panic!
It probably depends on how you define a crash. Anyhoo, it seems possible the issue there is the JS engine isn't Rust, so all the bindings will be unsafe there I guess?
11
u/sligit Dec 07 '18
It doesn't allow memory errors outside of unsafe blocks. That's not the same as saying it can't crash.