coffeescript - is do without parameters superfluous? -
I am new to coffeeclip, and I am learning by studying someone else's coffee code code. I do not need to do
because it does not capture
do @mymethod
any New variable, because there is no criteria in it, am I right?
To mark this question as a reply:
Class C mymethod = - & gt; Console.log "mymethod" with_do = - & gt; _with_ Do_myis method = - & gt; This.mymethod () with_at = - & gt; @mymethod ()
Methods with three will compile exact same JavaScript code.
Comments
Post a Comment