I'm quite proud that I managed to write down this explanation of conversions between Result, Option, and Failure's Error + ErrorKind pair. Feeling reasonably confident I understand what's going on. It's a good feeling!https://github.com/yoshuawuyts/changelog/pull/12/files#r214899055 …
-
Show this thread
-
On another note, some version of the `try {}` keyword would be great. Finding myself writing a lot of code like this: https://github.com/yoshuawuyts/crossgen/blob/master/src/cli.rs#L57-L59 … Would be great if we could cut down on the boilerplate a bunch.
1 reply 0 retweets 0 likesShow this thread -
Replying to @yoshuawuyts
Hmm, I'd write it in a way you can give the block in the None case a name. Let me make a quick PR to show what I mean
1 reply 0 retweets 1 like
Replying to @killercup
Oh yeah, I guess that could work! Get what you mean :D
6:52 AM - 4 Sep 2018
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.