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.
Example:
Result:
Expected result:
The current behavior produces a code, which gives a runtime error
ReferenceError: Invalid left-hand side in assignment
.The "expected result" block is a result of compiling: (after merging #1026)
which is a simplification of (currently uncompilable):
because the effects of semiautovivification are canceled by an assign.