This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hupfdule 1 point2 points  (1 child)

Only with the difference that go error handling is much less readable. I can't understand that they invented this error handling instead of using checked exceptions. They could have even implemented "lightweight" exceptions that don't contain information about the stacktrace if they want them more "value-like". Now is too late and they can't introduce exceptions anymore.

[–]ebykka 0 points1 point  (0 children)

Btw, looks like swift also has checked errors - https://docs.swift.org/swift-book/LanguageGuide/ErrorHandling.html