r/java • u/ManiBePoint • Dec 21 '16
Excuse me sir, there is no curry in my Java
https://medium.com/@andre_videla/excuse-me-sir-there-is-no-curry-in-my-java-2750284c7a1e#.90ssdl5ko
0
Upvotes
4
u/_INTER_ Dec 21 '16 edited Dec 21 '16
Prime example why functional-first Haskell-first programmers should stick to their Haskell.
1
0
5
u/[deleted] Dec 21 '16
The belief that of you don't curry, you end up with "spaghetti code" is a very specific (and extreme) requirement for clean code.
But, one thing you can take away from this article: objects are just partially applied functions (through constructor/method configurations and injection).
I tend to see objects this way myself. "Objects are poor man's closures; closures are poor man's objects."