Archive of stories published by Go Puzzlers

Go Puzzlers: Comparing Error Values

In Go, errors are values, as in they have a value and a type, like anything else. This is different from languages like Java or Python, where errors are exceptional things (pun intended) that require special handling and language syntax, like try / catch.

About
Go Puzzlers
What does this Go code do? Is it what you expect? Is there now a PR you need to make?
More information
Tags
Editors