3 ms·
Alan Kay talks about field effects but maybe what he really means is that "everything is an object" is a mistake. Not everything is an object in real life. For
by discreteevent 15y ago
Alan Kay talks about field effects but maybe what he really means is that "everything is an object" is a mistake. Not everything is an object in real life. For example, a sound wave is not an object but objects can react to it (or it can manipulate them, whichever you prefer). Maybe emphasizing this in a programming language can be done as simply as you have described it is done in go. ( I have always found objects expressive and useful but when overused they feel like a straitjacket)
- cpeterso 15y agoA sound wave may not be an object, but it is a noun and has properties such as frequency and amplitude. Though I could imagine defining a sound wave as a function.
- Rusky 15y agoA sound wave could be considered an object depending on your problem domain. The point is that operations should be able to work with anything that has the operations it needs defined. A sound wave could have several operations defined on it, including one(s) that let it behave as a function.