3 ms·
People gripe at Go's error checking, claiming it's verbose, etc. But, I like it. Fully and clearly expressed intent for the handling of errors.
by pknopf 9y ago
People gripe at Go's error checking, claiming it's verbose, etc.
But, I like it. Fully and clearly expressed intent for the handling of errors.
- krylon 9y agoIn a programming language that allows functions with multiple return values, error values of some sort become almost natural. In Lua, the idiom of returning "nil, errormessage" on failure is very common, too.