r/coffeescript • • Mar 12 '14

Why should you use CoffeeScript instead of JavaScript?

http://maori.geek.nz/post/why_should_you_use_coffeescript_instead_of_javascript
22 Upvotes

17 comments sorted by

View all comments

Show parent comment

4

u/cumucus Mar 13 '14

Also the “last statement will be implicitely returned” rule can be pretty annoying. I’d rather put a return sometimes in front of my results than putting some empty returns all the time I don’t want one. Maybe we need different types of arrows for function that return nothing? Like --> and ==>?

4

u/Grahar64 Mar 13 '14

Why not just throw away the thing the function returns?