maxtaco / coffee-script

IcedCoffeeScript
http://maxtaco.github.com/coffee-script
MIT License
726 stars 58 forks source link

Example from coffeescript.org is not working anymore. #189

Open kuznetsov-online opened 8 years ago

kuznetsov-online commented 8 years ago

Destructuring assignment example from http://coffeescript.org/ is not compatible with version 108.0.11.

class Person
  constructor: (options) ->
    {@name, @age, @height = 'average'} = options
maxtaco commented 8 years ago

It should work with iced-coffee-script-3. Can you give it a shot?

On Tuesday, July 19, 2016, Alexander Kuznetsov notifications@github.com wrote:

Destructuring assignment example from http://coffeescript.org/ is not compatible with version 108.0.11.

class Person constructor: (options) -> {@name, @age, @height = 'average'} = options

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/maxtaco/coffee-script/issues/189, or mute the thread https://github.com/notifications/unsubscribe-auth/AA05_1WTZLH_hbkbuLdf8IXlgztvNKZCks5qXPLZgaJpZM4JP4M7 .

maxtaco commented 8 years ago

See: https://github.com/maxtaco/coffee-script/tree/iced3

OR install via npm with npm install -g iced-coffee-script-3