I absolutely hate postfix await in @rustlang
Which means I'll probably be a huge fan in about 6 months
-
-
Replying to @rossipedia @rustlang
why would anyone do that? what prevents you from putting it before the statement?
2 replies 0 retweets 0 likes -
The language syntax itself. In
@rustlang you use `expression.await` inside async methods. In JS: const val = await foo(); In Rust: let val = foo().await1 reply 0 retweets 1 like -
Replying to @rossipedia @capajj
To expand a bit, the JS style interferes with ?; the precedence is the opposite of what it would look like
1 reply 0 retweets 1 like -
I actually didn't know that. Is there a GH post/comment or similar that goes into the details there?
1 reply 0 retweets 1 like
Replying to @rossipedia @capajj
There were so many posts. Best to start here, and follow links:https://boats.gitlab.io/blog/post/await-decision/ …
1 reply
0 retweets
2 likes
-
-
Thanks!
0 replies 0 retweets 2 likesThanks. 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.