3 ms·
You are proposing a situation where someone overrides += to specifically both call a blocking function and to not make it work correctly. I'm not saying it doe
by aidenn0 9y ago
You are proposing a situation where someone overrides += to specifically both call a blocking function and to not make it work correctly. I'm not saying it doesn't happen, but bad code is bad code regardless of your paradigm.
Though I must admit I've not done cooperative multitasking in a language with operator overloading so I can't say whether or not this is a problem in practice.
- ngrilly 9y agoIn can happen for example in Python with gevent.