I'm a big fan of the "errors are values" approach, but this
if err != nil {
return err;
}
three-liner in #golang has to die
-
-
Replying to @urhein
try! actually even got stabilized as the ? operator in Rust now, cause it's so useful.
1 reply 0 retweets 2 likes
it's tricky in Go, because you'd need it to apply to "tuple of (any, nil)", but maybe that's ok?
11:21 AM - 20 Oct 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.