Catch speed dating

Overview Installation Usage Literate Coffee Script Language Reference Literals: Functions, Objects and Arrays Lexical Scoping and Variable Safety If, Else, Unless, and Conditional Assignment Splats...

catch speed dating-31catch speed dating-72

The golden rule of Coffee Script is: "It's just Java Script".

The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime.

You can use any existing Java Script library seamlessly from Coffee Script (and vice-versa).

The compiled output is readable and pretty-printed, will work in every Java Script runtime, and tends to run as fast or faster than the equivalent handwritten Java Script. The core compiler however, does not depend on Node, and can be run in any Java Script environment, or in the browser (see "Try Coffee Script", above).

To install, first make sure you have a working copy of the latest stable version of

You can then install Coffee Script globally with npm: If you'd prefer to install the latest master version of Coffee Script, you can clone the Coffee Script source repository from Git Hub, or download the source directly.To install the latest master Coffee Script compiler with npm: extension, you can write it as a Markdown document — a document that also happens to be executable Coffee Script code.The compiler will treat any indented blocks (Markdown's way of indicating source code) as code, and ignore the rest as comments.Just for kicks, a little bit of the compiler is currently implemented in this fashion: See it as a document, raw, and properly highlighted in a text editor.I'm fairly excited about this direction for the language, and am looking forward to writing (and more importantly, reading) more programs in this style.More information about Literate Coffee Script, including an example program, are available in this blog post.