Re:Lies we tell ourselves to keep using Golang
by kaba0 on Saturday April 30, 2022 @11:29AM
(#31216754)
There is nothing inherent to JVMs here, it is just the all around most common error type. It simply don’t make sense to handle many type of errors at call site, because it misses the big picture and for these, return types are not a good fit.
[ Parent
| on HN ]
Re:Lies we tell ourselves to keep using Golang
by mumblemumble on Saturday April 30, 2022 @11:40AM
(#31216855)
So, the idea is basically that of the impureim sandwich: push everything that can fail out to the periphery. If it's difficult to handle errors at the call site, it's a sign that the call site is in the wrong place.