> 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.
Re:Channels in Golang
by dispose13432 on Sunday December 25, 2016 @12:13AM
(#13253044)
> 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). It's just much more commonly used for errors (instead of try catch).
Seems like there's decent enough tools + emacs/vim wrappers to me. In my mind this is one of the primary merits of go.