3 ms·
The main target for coroutines was networking. And, given enough library sugar, they actually work decently enough there. The other use case is generators and
by gpderetta 5y ago
The 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.