Pages - Menu

07 March, 2013

CoffeeScript 1.6.1


Developer:

Website:

License / Price:

Platforms:

Databases:

Language:

Last Updated:

Category:
Jeremy Ashkenas | More scripts
jashkenas.github.com
MIT License 

Windows / Linux / Mac OS / BSD / Solaris
N/A
Unknown
March 7th, 2013, 23:48 GMT [view history]
C: \ Development Tools \ Compilers

The CoffeeScript compiler is written in pure CoffeeScript, using a small DSL on top of the Jison parser generator, and is available as a Node.js utility.

The core compiler however, does not depend on Node, and can be run in other server-side-JavaScript environments, or in the browser.

CoffeeScript uses Python-style significant whitespace, so line endings are regarded as code endings as well.

Here are some key features of "CoffeeScript":

· Functions are defined by a list of parameters, an arrow, and the function body.
· Significant whitespace
· Use a colon : to assign, as in JSON
· Object and Array literals look very similar to their JavaScript cousins.
· The CoffeeScript compiler takes care to make sure that all of your variables are properly declared within lexical scope
· If/else statements can be written without the use of parentheses and curly brackets
· CoffeeScript provides splats ..., both for function definition as well as invocation, making variable numbers of arguments a little bit more palatable
· The main difference from JavaScript is that the while loop can be used as an expression, returning an array containing the result of each iteration through the loop
· CoffeeScript borrows Ruby's range syntax for extracting slices of arrays
· Function binding
· Embedded JavaScript
· CoffeeScript borrows chained comparisons from Python
· String and RegExp interpolation
· Multiline strings are allowed in CoffeeScript

Requirements:

· Node.js 0.1.90 or higher

What's New in This Release: [ read full changelog ]

· Fixed a 1.5.0 regression with multiple implicit calls against an indented implicit object. Combinations of implicit function calls and implicit objects should generally be parsed better now — but it still isn't good style to nest them too heavily.
· .coffee.md is now also supported as a Literate CoffeeScript file extension, for existing tooling. .litcoffee remains the canonical one.
· Several minor fixes surrounding member properties, bound methods and super in class declarations.


Download button
Via: CoffeeScript 1.6.1

No comments:

Post a Comment