I wish that golang had a option/maybe type. I don't care if it's builtin/magic. Would be really useful.
@evanphx @halorgium there's a try! Macro that's pretty helpful: let file = try!(File::open(path)) - unwraps OK value, propagates error value
-
-
@wycats@evanphx@halorgium perhaps something like http://play.golang.org/p/IQ2cpLgDbn -
@vbatts@wycats@halorgium Here's some pseudo code of what I mean: https://gist.github.com/anonymous/f51adf36fdef5cf92380 …
End of conversation
New conversation -
-
-
@wycats@evanphx@halorgium The nice thing with try! is that it is almost a monad :)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.