3 ms·
You can easily do multi-return in c, return a struct it just doesn't hold your hand.
by nwmcsween 12y ago
You can easily do multi-return in c, return a struct it just doesn't hold your hand.
- donatj 12y agoBut as a language construct and the agreed upon way of returning errors it's much more powerful. Returning a structure you can just ignore the error piece. Returning an error however in Go, you have to explicitly handle it. If you don't, it's literally a compile error.