Re:Go proposal: Leave “if err != nil” alone?
by amelius on Friday June 28, 2019 @03:52PM
(#20308219)
The problem is that even if the programmer is forced to deal with every error condition, they might think a particular error is not likely and write a dummy handler (like print something and hope for the best). In that case exceptions are superior because at least they wind down the stack and allow a caller to deal with the situation, and prevent a crash.
[ Parent
| on HN ]
Re:Go proposal: Leave “if err != nil” alone?
by erik_seaberg on Friday June 28, 2019 @03:57PM
(#20308259)
When people don't care, you have to make doing it right easier than doing it wrong.