Re:Errors are values
by NateDad on Tuesday January 13, 2015 @08:46AM
(#8879724)
This is required for fine grained control of exceptions too. You have to wrap each statement in a try/catch which is even more verbose than the error check in go. Otherwise you can't programmatically tell which statement failed.
[ Parent
| on HN ]
Re:Errors are values
by prodigal_erik on Tuesday January 13, 2015 @11:32AM
(#8880809)
Java has been recording stack traces for over a decade. This is an argument for building things into the language, because it would have been very difficult to roll our own version of it as a library.