Comment

Comment by 9rx

> They could've at least looked at what other languages were doing at the time

Other languages at the time were doing the exact same thing, except, maybe, wrapping the error in a monad such that you have to check the error before doing anything with value, but still with "if" or an if-like construct.

But that is unnecessary in Go as it believes that values should always be useful – which means you don't need to even consider the error to use the value.

parent 9rx 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton