Was convinced today `throw` makes a lot of sense as a keyword in Rust, and whew, I guess I've come a long way.
-
-
Replying to @yoshuawuyts
Is there a place I can read about this. I far prefer the match clauses with Result types that I can use over other languages’ try/catch block. Would the throwable type be part of the function signature or relegated to docblocks?
1 reply 0 retweets 0 likes
Replying to @Kingdutch
Afaik not yet. Hopefully someday there'll be RFCs tho. And yeah, it would work as sugar for the existing result type. Most importantly it would provide a way to transparently get rid of `Ok(())` at the end of functions.
1:53 AM - 23 Jan 2019
0 replies
0 retweets
2 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.