Fave small features that I hope we can see in Rust someday: - type alias for `Box<dyn std::error::Error + Send + Sync + 'static> - syntax for getters / setters (complicated because get / get_mut) - syntax for delegation -- declare a method that calls out to an inner struct
-
Show this thread
-
Perhaps a better phrasing is: speed bumps in Rust I wish we could solve someday: - using generic errors is quite painful to type out, esp for async code - setters / getters are declared often, and the boilerplate is noisy - the "newtype" pattern is also a lot of boilerplate
1 reply 0 retweets 4 likesShow this thread -
I think in the short term IDEs can probably solve the "write code" part of this, because it's quite easy to automate. But I think we should also consider the "read code" side of things, and generally the best way to solve this is by operating at the language layer.
1 reply 0 retweets 1 likeShow this thread
Also explicitly not saying we should drop everything and work on these things. Mostly hope we can eventually get around to applying some polish (:
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.