4 ms·
The smalltalk object system is a nice simple example: A Smalltalk object can do exactly three things: Hold state (references to other objects). Rec
by dood 18y ago
The smalltalk object system is a nice simple example:
A Smalltalk object can do exactly three things:
Hold state (references to other objects).
Receive a message from itself or another object.
In the course of processing a message, send messages to itself or another object.
http://en.wikipedia.org/wiki/Smalltalk#Object-oriented_programming http://en.wikipedia.org/wiki/Smalltalk#Object-oriented_progr...
- jhancock 18y agoGood definition. Smalltalk is the only appropriate starter language to learn objects well. Sure there is the difference between class based and prototype based languages, but this hardly matters compared to "getting" objects right in your head in the first place.
- dr_strangelove 18y agoThe language that fits this description best is Erlang, I would say ... (what, in this definition, is specific to objects compared to processes?)
- davidw 18y agoIn smalltalk everything is an object. In Erlang, many things aren't. Processes and messages are a bit higher up in Erlang's world.