MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1j1cw7/coffeescripts_scoping_is_madness/cbadzz7/?context=3
r/programming • u/donatj • Jul 25 '13
315 comments sorted by
View all comments
Show parent comment
0
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
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!
Yes, that's what I'm arguing. You don't need annotations or keywords!
View all comments
Show parent comment
0
u/Intolerable Jul 26 '13
You have type annotations, though, which aren't particularly nice-looking.
vs
vs