Coco 0.2.0
https://github.com/satyr/coco/tree/0.2.0
CoffeeScript 1.0.0 のリリースに合わせてこちらもバージョンを繰り上げた。
以下は 0.1 → 0.2 で可能になった書き方の一部。
a[0]['@'] |
a.0.\@ |
[arguments[1], arguments[2]] |
@@[1, 2] |
[o['+'], o['-']] |
o<[+ -]> |
[x[0], x[1]] = y |
x[0, 1] = y |
{a: x.a, b: x.b} = y |
x{a, b} = y |
@x += z[0]; @y += z[1] |
[@x, @y] += z |
tmp if tmp = f() |
that if f() |
try catch _e then 1 |
try catch 1 |
(new class extends C) import k:v |
C::{k:v} |