DEV Community

Discussion on: Java 15 in 2020: Reasons to *not* use Java?

Collapse
 
bovermyer profile image
Ben Overmyer

Error handling in Go is verbose. That's true. However, the verbosity of error handling in Go is a little different, in that it forces you to acknowledge potential fail states in your code. Also, if you really want to, you can completely ignore error handling entirely in favor of concise code. That makes me twitch, but it's possible.

Thread Thread
 
bmorearty profile image
Brian Morearty

To be clear, I wasn’t implying I like to ignore error handling. Just that I like it to be concise.

Thread Thread
 
brunoborges profile image
Bruno Borges

Aren't checked exceptions in the same area as "forcing developer to acknowledge potential fail states", while allowing developers to ignore them if they want to, and also allowing developers to purposely going with unchecked exceptions if they prefer?