3 ms·
Requiring explicit error handling instead of exceptions makes it not brief. Lots of things will fail, and every single time: f, err := Sqrt(-1) if err != n
by harkinian 3y ago
Requiring explicit error handling instead of exceptions makes it not brief. Lots of things will fail, and every single time:
f, err := Sqrt(-1)
if err != nil {
// handle error
}
Probably async/await would make things briefer too, idk, haven't used Golang enough to tell.