Was reading about Rust's new generalized type ascription proposal (which looks like it might be merged soon!) and it's suuuper exciting! https://github.com/Centril/rfcs/blob/rfc/generalized-type-ascription/text/0000-generalized-type-ascription.md …
-
-
For example, take this statement (yay, turbo fish!): match foo.parse::<i32>() { Ok(x) => ..., Err(e) => ... } With type ascription it could be rewritten to: match foo.parse() { Ok(x: i32) => ..., Err(e) => ..., } Which seems much clearer!
Show this threadThanks. 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.