Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I never understand the `function *(){}` syntax. Why can't we simply introduce a new keyword like `generator (){}`?


Or just recognize that the function contains the yield keyword. That said, `function*` isn't all that bad given what you get in return.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: