3 ms·
I never understand the `function *(){}` syntax. Why can't we simply introduce a new keyword like `generator (){}`?
by est 13y ago
I never understand the `function *(){}` syntax. Why can't we simply introduce a new keyword like `generator (){}`?
- netghost 13y agoOr just recognize that the function contains the yield keyword. That said, `function*` isn't all that bad given what you get in return.