3 ms·
> Just so you're aware, C++ has three keywords here: co_async, co_await, and co_return... This is admittedly an unimportant correction to what you said that do
by saurik 3y ago
> Just so you're aware, C++ has three keywords here: co_async, co_await, and co_return...
This is admittedly an unimportant correction to what you said that doesn't in any way change your point; and yet, I still think it is an important one to keep in mind for people who only might end up with an indirect understanding of the C++ feature: C++ additionally chose to add a specialized co_yield... and specifically does not have co_async! This latter tradeoff then relates to the Rust discussions I have seen come up again recently due to the article "Was async fn a mistake?".
https://seanmonstar.com/post/66832922686/was-async-fn-a-mistake https://seanmonstar.com/post/66832922686/was-async-fn-a-mist...
https://news.ycombinator.com/item?id=37789057 https://news.ycombinator.com/item?id=37789057
https://old.reddit.com/16ugwuc/ https://old.reddit.com/16ugwuc/
- deleted 3y ago[deleted]