3 ms·
> a protection that, until now, had to be enforced merely by convention and review. It is enforced by linters and almost all IDEs. Compare to how how the follo
by apta 7y ago
> a protection that, until now, had to be enforced merely by convention and review.
It is enforced by linters and almost all IDEs. Compare to how how the following golang code drops errors silently, and is not caught by the compiler:
foo, err := getFoo()
err = processFoo(foo)
if err != nil { ... }