a snippet from a sample:
class Animal
constructor: (@name) ->
the documentation says that @name is a syntactic sugar for this.name. Where does it say that the above function also performs assignment? how? I can see from the generated code that it does, I am just trying to understand the language. why does it perform assignment?
thanks
konstantin
http://arcturo.github.com/library/coffeescript/03_classes.html
Basically, calling the argument
@namemeans “use this argument to set thenameproperty of the newAnimalinstance”.