LiveScript 1.1.0 released!

29 Oct 2012 - George Zahariev

LiveScript is a language which compiles to JavaScript. It has a straightforward mapping to JavaScript and allows you to write expressive code devoid of repetitive boilerplate. While LiveScript adds many features to assist in functional style programming, it also has many improvements for object oriented and imperative programming.

For more information, check out the LiveScript site.

1.1.0

LiveScript 1.1.0 adds new features, fixes bugs, and as a whole has greatly improved compatibility with CoffeeScript, particularly with the class system.

lsc

As typing out livescript in the terminal can be a hassle, an alias, lsc has been added.

require!

require! removes the boilerplate of requiring modules. Some examples:


require! lib

require! [fs, path]


require! $: jQuery

require! {
  module
  _: underscore
  './path/to/lib.js'
}
var lib, fs, path, $, module, _;
lib = require('lib');

fs = require('fs');
path = require('path');

$ = require('jQuery');


module = require('module');
_ = require('underscore');
lib = require('./path/to/lib.js');


More on require!

Cascades

Cascades can now be one liners, allowing powerful and expressive object manipulation:

[2 7 1 8]..push 3 ..shift!..sort! #=> [1,3,7,8]
var x$;
x$ = [2, 7, 1, 8];
x$.push(3);
x$.shift();
x$.sort();

For more changes view the changelog.

For more information on LiveScript, check out the LiveScript site.


For more on LiveScript and prelude.ls, .

comments powered by Disqus