News for hackers. Stuff that matters.
Re:An Open Letter to the Go Team About Try by Cthulhu_ on Thursday July 04, 2019 @07:36AM (#20353632)
That reminds me of Scala's `Either` type, which I'm sure is also present in other languages (and more functional circles which I'm not familiar with at all).

I think the important part there - and the contrast with e.g. exceptions - is that an error is treated as normal, as one possible outcome of calling a method, instead of exceptional as exception-based languages seem to be. I mean yeah of course a file can not be available to open, that can be expected. (That is the simple use case of course, I'm sure there's much more complicated situations).

There are no comments on this comment yet.