News for hackers. Stuff that matters.
Re:Things I Enjoy in Rust: Error Handling by namelosw on Monday April 22, 2019 @07:00PM (#19723911)
Designs like Java which have NullPointerException simply ignore null. Modeling T instead of T | null is just too convenient. It's a lazy design.

I'm fine with most of those new ways of error handling, although some feel better and the others feel a little bit awkward. If some concept exists (exception/emptiness/async), model it, handle it. Instead of just ignore it and leak the responsibility to the users.

There are no comments on this comment yet.