r/programming • • Jul 25 '13

CoffeeScript's Scoping is Madness

http://donatstudios.com/CoffeeScript-Madness
207 Upvotes

315 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jul 25 '13

[deleted] — view deleted comment

0

u/Intolerable Jul 26 '13

You have type annotations, though, which aren't particularly nice-looking.

int add(int x, int y) { return x + y; }

vs

add = (x,y) -> x + y // admittedly not static-typed

vs

add x y = x + y // static-typed, but succinct and doesn't require annotations

0

u/[deleted] Jul 26 '13

Yes, that's what I'm arguing. You don't need annotations or keywords!