You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classDogconstructor: (@name) -># is equal to:classDogconstructor: (name) ->this.name= name
And I miss it here even Imba was forked from Coffeescript years ago.
It could be @ or $ prefix or ! postfix to tell that argument should be assigned to self.
Why
It is repeatable in any object oriented program. I mean assigning attributes to the object
without any modification.
Is this something you're interested in working on?
Yes
The text was updated successfully, but these errors were encountered:
'hello' is the default value. I'm showing that you can pass in custom values by supplying an object as the argument, in this case we're creating a Note and setting name to 'world'.
Description
There's neat syntax in Coffeescript:
And I miss it here even Imba was forked from Coffeescript years ago.
It could be
@
or$
prefix or!
postfix to tell that argument should be assigned toself
.Why
It is repeatable in any object oriented program. I mean assigning attributes to the object
without any modification.
Is this something you're interested in working on?
Yes
The text was updated successfully, but these errors were encountered: