Hacker News new | ask | show | jobs
Js-cps , simple conversion to asynchronous javascript (github.com)
2 points by cperkins 5154 days ago
I was getting tired of all the deeply nested anonymous functions that are entailed with anything but the simplest AJAX transactions. (ie the "triangle of death"). JS-CPS is a simple transformer that transforms synchronous looking javascript (that uses a certain predefined token) to asynchronous javascript. I've found it very handy in my own work.