I saw this... and thought of you

http://dis.4chan.org/read/prog/1180896798/ (It's been a while since I touched Java, and I must confess I can't even comprehend this code...)

Andrew Coppin wrote:
http://dis.4chan.org/read/prog/1180896798/
(It's been a while since I touched Java, and I must confess I can't even comprehend this code...)
Look's like a bad done extension of the well-known function object
pattern in oo design to allow currying. I would prefer the following
much more natural implementation:
// in Haskell:
// type Fun cod dom = dom -> cod
interface Fun
participants (2)
-
Andrew Coppin
-
Tillmann Rendel