I really wish all languages move to suspend instead of async/await. The advantage is clear. It is disturbing to see that some languages are still adding async/await even as a better way was already obviously discovered.https://twitter.com/talyssonoc/status/1120551426453921793 …
-
-
Replying to @relizarov
I'm very sad that
@rustlang is pushing on the async/await instead of the suspend way.1 reply 0 retweets 2 likes -
Kotlin and Rust have very different use cases. It is natural for Kotlin to introduce more syntactic sugar, while Rust aims for explicitness of its programs
1 reply 0 retweets 0 likes -
what makes async await more explict than suspendable functions?
1 reply 0 retweets 2 likes -
Suspendable functions differ from async functions by their implicit semantic blocking (awaits) on nested calls of other suspendable functions. Async/await syntax provides manual control of these awaits and explicit division of async and sync calls.
1 reply 0 retweets 3 likes -
We had lot of concerns and debates about this explicitness. It feels implicitly scary without await, but then you come think about Go lang and fears go away. There’s also a middle ground in Swift proposal. More about it herehttps://medium.com/@elizarov/how-do-you-color-your-functions-a6bb423d936d …
1 reply 0 retweets 2 likes -
To be clear, we didn’t go with async/await due to “explicitness.” I don’t have an link handy for when suspend was brought up, unfortunately.
2 replies 0 retweets 0 likes -
Replying to @rustlang @relizarov and
So... you are still considering "suspend"? Or is there a deeper reasoning?
1 reply 0 retweets 0 likes
We are not, the decision was made final last week. The comparison is *somewhere* in the rfcs, there was just SO MUCH discussion that it’s not simple to find
-
-
Replying to @rustlang @relizarov and
I see. Would be very curious to see some of it in blog posts! Especially the "why"s of the end design. For example, Kotlin team (Elizarov) took their time to write down some of their discussions in posts for casual reading, and IMO it really helped the adoption.
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.