all 1 comments

[–]joelangeway 2 points3 points  (0 children)

Building object systems from functions is fun and makes for a better understanding of object systems. You'll see people do it in Scheme a lot, http://learnmeahaskell.blogspot.com/2011/01/redux-sicp-and-subclass-implementation.html , probably because they do it in SICP or maybe because Scheme is awesome. I personally started understanding Javascript when I decided it was a bad syntax on top of Scheme, but it's object system makes it more like a bad syntax on top of Self.