プログラムdeタマゴ

nodamushiの著作物は、文章、画像、プログラムにかかわらず全てUnlicenseです

CoffeeScript v1.7

 はーい、修論で死にそーなnodamushi様ですよ。家のベッドで寝たいなー(遠い目


 というわけで、CoffeeScriptのv1.7が出たようです。今回はおもしろい便利な演算子「**」「//」「%%」の追加、複数行文字列の扱いが変更されていたので、二年ぶりにCoffeeScript入門を更新しておいたよ。とくに、演算子の追加が非常にうれしい。


 研究室のPCにはCoffeeScript入ってないので、引数の「...」がなんか変更されてたり、
Closing brackets can now be indented and therefore no longer cause unexpected error.

Several breaking compilation fixes. Non-callable literals (strings, numbers etc.) don't compile in a call now and multiple postfix conditionals compile properly. Postfix conditionals and loops always bind object literals. Conditional assignment compiles properly in subexpressions. super is disallowed outside of methods and works correctly inside for loops.


とか、なんかコンパイラが賢くなったらしーんだけど、例によって何がかわったんかよーわからん。わかる人は教えてください。


 あー、家。帰りてー