Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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_progr...


Good 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.


The language that fits this description best is Erlang, I would say ... (what, in this definition, is specific to objects compared to processes?)


In smalltalk everything is an object. In Erlang, many things aren't. Processes and messages are a bit higher up in Erlang's world.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: