4 ms·
Sooooo A process is a function running in its own context. A module is just a namespace to group some functions. But there is no real link to what an object b
by di4na 10y ago
Sooooo
A process is a function running in its own context.
A module is just a namespace to group some functions. But there is no real link to what an object brings.
At best you could try to compare an OTP behaviour to a class but even that...
- fzzzy 10y agoA process is an object. It accepts messages and sends messages. It encapsulates state.
- di4na 10y agoSure. But... Then you enter the place where you get overloaded semantic. In particular... the fact that "Object need Classes !" or "Objects are a thing that encapsulate Functions with hidden state" I have some ideas for post about the fundamental difference beetween RPC and message passing. And how it impact how you think about your code (Java/Cpp vs Smalltalk/Erlang). I think it is the main point.
- masklinn 10y ago> In particular... the fact that "Object need Classes !" That could hardly be less of a fact though.