4 ms·
You may think you need async, but you don't. This isn't Python or Javascript, the use case for C++ coroutines is microcontrollers and other things without a fun
by otabdeveloper4 5y ago
You may think you need async, but you don't. This isn't Python or Javascript, the use case for C++ coroutines is microcontrollers and other things without a functioning modern OS.
- zarkov99 5y agoThat is a bold thing to say. Why do you think this is the case?
- gpderetta 5y agoThe main target for coroutines was networking. And, given enough library sugar, they actually work decently enough there. The other use case is generators and there the hard to remove allocation hurts a lot.
- otabdeveloper4 5y agoThis isn't Python. Nobody needs or asked for coroutines to do networking in C++.
- gpderetta 5y agomany many many people did ask for them. Also, of course you do not need them. You also do not need C++, just a needle and steady hand.
- pjmlp 5y agoUntil you happen to do modern Windows with WinUI/UWP in C++, as not all APIs are exposed to .NET.