3 ms·
The 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 messag
by lmm 8y ago
The 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.