Comment

Comment by withoutboats2

Java's NPE is not at all the same thing as the undefined behavior of dereferencing a null pointer in C (or Zig in release mode). In fact its the same exact thing as calling unwrap. Your Java server's NPE is not bringing down the entire server because the exception is caught somewhere. The same can be done in Rust (and is, by many frameworks), where panics are caught before they crash the entire application.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton