4 ms·
I mean JavaScript makes the same decision here as well. To use yield you must define a generator using "function*" rather than a function using "function" exact
by nicoburns 5y ago
I mean JavaScript makes the same decision here as well. To use yield you must define a generator using "function*" rather than a function using "function" exactly because it's confusing. Is it really so hard to to type `async`?
- actually_a_dog 5y agoThat's not a justification. Maybe JS used the same flawed reasoning?