2013-04-05から1日間の記事一覧
CoffeeScript の継承を読んでみる CoffeeScript で次のように書くと class Animal constructor: (@name) -> alive: -> false class Parrot extends Animal constructor: -> super("Parrot") dead: -> not @alive() 次のようにコンパイルされる。(整形、コメ…
CoffeeScript の継承を読んでみる CoffeeScript で次のように書くと class Animal constructor: (@name) -> alive: -> false class Parrot extends Animal constructor: -> super("Parrot") dead: -> not @alive() 次のようにコンパイルされる。(整形、コメ…