I wish that golang had a option/maybe type. I don't care if it's builtin/magic. Would be really useful.
@evanphx @halorgium Yeah, I really like Option in Rust (as different from Result). Occasionally I even have Result<Option<T>>
-
-
@wycats@halorgium What does Result<> do? -
@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 -
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.