3 ms·
> having special syntax for returning errors vs a more generic solution like multiple return values or returning a tuple Golang supports generic multiple retur
by 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).