4 ms·
William Cook's response to this is worth a read http://wcook.blogspot.com/2011/04/paul-graham-on-objects-in-arc.html?m=1 http://wcook.blogspot.com/2011/04/paul
by discreteevent 8y ago
William Cook's response to this is worth a read
http://wcook.blogspot.com/2011/04/paul-graham-on-objects-in-arc.html?m=1 http://wcook.blogspot.com/2011/04/paul-graham-on-objects-in-...
"Objects are just collections of first-class functions". " the lambda-calculus was the first object-oriented language: all its data is represented behaviorally as objects"
- lmm 8y agoThe lambda calculus is not an object-oriented language, because it does not have hidden (mutable) state. Noticeably, the idea of using 'at-end? and 'read messages goes wrong precisely when there's hidden mutable state behind "stream" (e.g. some other thread consumes the stream in between the 'at-end? and the 'read). As the saying goes, you wanted a banana but what you got was a gorilla holding the banana and the entire jungle. That can't happen in the lambda calculus.