continuum.js is a fork of Continuation.js. It is a compiler for Continuation-Passing Style transformation which lets you write asynchronous code in a synchronous way.
this:
// coffee-scripted
sum 1, 1, _(tot)
console.log tot
sum tot, 1, _(tot)
console.log tot
instead of this:
// javascript compiled
sum(a, b, function(tot){
console.log(tot);
sum(tot, 1, function(tot){
console.log(tot);
});
});
I'm going to adapt this compiler to my needs.
-
added shortcuts for coffee-script developers:
cont(err, value) or __(err, value) for coffee-scripters.
obtain(value) or _(value) for coffee-scripters.
parallel keyword remains the same for the moment.
-
fixed problems with ignored parameters.
-
I'll try to change some syntax too.