3 ms·
In Java, no method call is safe (Haskell/Rust safe), the langage will hapilly throws a null pointer exception or an out of memory error. But I don't think C#,
by _old_dude_ 3y ago
In Java, no method call is safe (Haskell/Rust safe), the langage will hapilly throws a null pointer exception or an out of memory error.
But I don't think C#, Kotlin or Scala are less safe than Java even if they do not have the concept of checked exceptions.
- rogerkeays 3y agoGood point...
- kaba0 3y agoHaskell and Rust can also throw exception/panic respectively in any call, ever.
- _old_dude_ 3y agoTechnically true, but Haskell forces you to use the IO monad and you can not really recover from a panic in Rust, the thread is dead.
- kaba0 3y agohead [] No monad, nothing, just an exception.