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

The solution I settled on for dnode is that a deep traversal finds all the functions in your argument list, pulls them out, and wraps them. This part of the protocol is a reusable module if you want to go with it:

https://github.com/substack/dnode-protocol

It's written for continuation-passing style but it shouldn't be too hard to retrofit it for other call styles if you want to preserve explicit returns for instance.



Awesome. I'm looking into this for next release


You guys have the hacker nature. I dig it.




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

Search: