3 ms·
1) Destructuring assignment: http://coffeescript.org/#destructuring http://coffeescript.org/#destructuring (although they lack an object example). 2) This has
by lowboy 14y ago
1) Destructuring assignment: http://coffeescript.org/#destructuring http://coffeescript.org/#destructuring (although they lack an object example).
2) This has to do with the unary plus operator more than just cs - since +varname is an expression, it treats it as such. Fair complaint - I've never run into that. Also, this works just fine if you put the plus on the end of the first line:
a = long_var_name +
hey_another_var
3) When would you use those?
4+5) Are cases of the unary operator in 2)
6-10) Sure, this is limiting if you want to write switch statements like that.
I feel that your coding style is different, or that you're listing edge cases to be contrarian. Coffeescript has a much smaller range of syntax deviations but that's part of what allows it to be so brief and clean.
- esrauch 14y agoHis 1-3 were complaining about undocumented syntax, and the rest about the actual syntax itself. Not that your response is wrong, just that might help you understand what he was saying.