LiveScript

LiveScript でつまずいたこと

関数呼び出し中の do hoge-func ham, tomato, beacon do a: \foo b: \bar が: hogeFunc( ham, tomato, beacon, { a: 'foo', b: 'bar' } ); になって欲しいのだが、時々こういう風になる: hogeFunc( ham, tomato, beacon({ a: 'foo', b: 'bar' }) ); うん、be…

なぜこの書き方がいいの?

LiveScript では、普通の文字列の別の書き方として \hoge というのができる。 SliderService.add-column account.serv, account.name, type, params, (ok, msg) !-> if ok console.log 'create column done.' respond { result: \ok, content: { column: msg…