CoffeeScript 1.8.0

A programming language that compiles into JavaScript
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.

Main features:

  • 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

last updated on:
August 31st, 2014, 14:04 GMT
price:
FREE!
developed by:
Jeremy Ashkenas
homepage:
coffeescript.org
license type:
MIT License
operating system(s):
Windows / Linux / Mac OS / BSD / Solaris
category:
C: \ Development Tools \ Compilers

FREE!

In a hurry? Add it to your Download Basket!

user rating 8

5.0/5
 

0/5

Rate it!
What's New in This Release:
  • The --join option of the CLI is now deprecated.
  • Source maps now use .js.map as file extension, instead of just .map.
  • The CLI now exits with the exit code 1 when it fails to write a file to disk.
  • The compiler no longer crashes on unterminated, single-quoted strings.
read full changelog

Add your review!

SUBMIT