3 ms·
Yes. In fact, E.G: C# and JS have them, although they don't have exactly the same features. edit, sorry I've meant generators. Incidentally, it's also true for
by BiteCode_dev 5y ago
Yes. In fact, E.G: C# and JS have them, although they don't have exactly the same features.
edit, sorry I've meant generators. Incidentally, it's also true for js decorators.
- k__ 5y agoHow do Python generators differ from JavaScript generators?
- BiteCode_dev 5y agoYield from comes to mind.
- k__ 5y agoIsn't JS yield* the same as yield from in Python
- BiteCode_dev 5y agoUnless I'm mistaken, it propagate pulling, but not pushing with send(). I haven't checked though.
- goatlover 5y agoDecorators are still a pending proposal in ECMAScript, so they would only be available to transpilers. That makes them non-standard until the proposal is approved, where the implementation could change.