continuum.js

0.1.7 • Public • Published

Continuum.js

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.

  1. 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.

  2. fixed problems with ignored parameters.

  3. I'll try to change some syntax too.

Package Sidebar

Install

npm i continuum.js

Weekly Downloads

1

Version

0.1.7

License

BSD

Last publish

Collaborators

  • eurekaa