4 ms·
This is a fairly minor point: but I also like how idiomatic error handling in Go only indents the block that handles the problem. Because of multiple returns,
by drbawb 14y ago
This is a fairly minor point: but I also like how idiomatic error handling in Go only indents the block that handles the problem.
Because of multiple returns, the normal flow of execution isn't indented. I find that this makes it easier to skim Go code in practice.