Hacker News new | past | comments | ask | show | jobs | submit login

Note that this is already possible in ES6 with generators and yield, if you write your own trampoline:

https://gist.github.com/drostie/66876fc880cb17c2a6763968aef1...

Of course, it's nice to get this sort of native support for trampolining, I just wanted to be the killjoy who pointed out that as of ES6 you can already write the same thing in a slightly different way, with functions that only go up to maybe 30 SLOC or so each and therefore don't kill your codebase.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: