Questioning the Generator Syntax of Effect.gen
I'm a bit puzzled by the generator syntax of Effect.gen
won't it be more convenient to check if the passed object has an Symbol.asyncIterator assigned to it ? (e.g. is a generator function), and apply one if it's not.
This way we should be able to emulate arrow generators from
Thoughts ?
won't it be more convenient to check if the passed object has an Symbol.asyncIterator assigned to it ? (e.g. is a generator function), and apply one if it's not.
This way we should be able to emulate arrow generators from
proposal-generator-arrow-functions https://github.com/tc39/proposal-generator-arrow-functionsThoughts ?
