2 ms·
I'm not really a go person. I might go as far as saying I'm a go hater. But I feel compelled to defend it in this case. Golang is a deliberately simple language
by wcummings 10y ago
I'm not really a go person. I might go as far as saying I'm a go hater. But I feel compelled to defend it in this case. Golang is a deliberately simple language that lends itself well to inspection & tooling. For example, having special syntax for returning errors vs a more generic solution like multiple return values or returning a tuple. It feels awkward but makes detecting unhandled errors very simple.
Seems like there's decent enough tools + emacs/vim wrappers to me. In my mind this is one of the primary merits of go.
- dispose13432 10y ago> having special syntax for returning errors vs a more generic solution like multiple return values or returning a tuple Golang supports generic multiple returns (https://gobyexample.com/multiple-return-values https://gobyexample.com/multiple-return-values). It's just much more commonly used for errors (instead of try catch).
- pcwalton 10y ago> For example, having special syntax for returning errors vs a more generic solution like multiple return values or returning a tuple. Even if this were true (which it isn't—Go uses multiple return values for returning errors), returning a tuple would in no way make analysis harder. Detecting whether a function returns (T, err) for some T is utterly trivial.