8 ms·
coffescript's sugar is pretty nice (haskell inspired)? function (a,b) {return a+b} becomes (a,b) -> a+b Hopefully in harmony we will see a shorter function synt
by dmmalam 15y ago
coffescript's sugar is pretty nice (haskell inspired)?
function (a,b) {return a+b}
becomes
(a,b) -> a+b
Hopefully in harmony we will see a shorter function syntax for environments where CS isn't an option
- udp 15y agoNot having to write `function` everywhere is pretty much the reason I started using CoffeeScript.
- fein 15y agoWhy not just save snippets? I do this in emacs (yasnippet) all the time instead of constantly rewriting the same stub. Not knocking coffescript here, just saying that "I don't want to write a specific word" is a pretty terrible reason to pick any language over another.
- eru 15y agoI guess he also doesn't want to read it everywhere and clutter up his code.