Hacker News new | past | comments | ask | show | jobs | submit login
Continuation Passing Style in JS (might.net)
20 points by jxub on Feb 27, 2018 | hide | past | web | favorite | 1 comment



Good article! I find CPS rather refreshing to work with in JS; so much so, that I prefer using it for asynchronous code over promises or async/await. It turns out 'callback hell' isn't so hellish with a few simple conventions, and I feel that functional-style asynchronous code is much easier to get right than imperative-style asynchronous code.

Shameless plug: (https://github.com/somesocks/uchain)




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

Search: