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

Futures like in node-fibers? https://github.com/laverdet/node-fibers I think it is the proper way to complement generators and give the alternative to wait for a function value.


I don't think there's a reason to bake futures/promises into the language. Once you've got coroutines (generators here), people can build the abstractions around them that they like.




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

Search: