2 ms·
> I would say the question mark improves readability, compared to having to check/return error codes by hand after every function call. Which is one of my comp
by mmarq 4y ago
> I would say the question mark improves readability, compared to having to check/return error codes by hand after every function call.
Which is one of my complaints about Go.
result, err = doSomething();
if err != nil {
...
}
result, err = doSomething2();
if err != nil {
...
}