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

Piecemeal compilation:

    // beginning of file
    Coffeescript = require('coffee-script');
   
    // compilation    
    Coffeescript.compile(line, {bare: true});
e.g.

    var f = eval(Coffeescript.compile("(x) -> x + 1", {bare: true}));
    f(1) // ==> true


Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: