[erlang-questions] OOP in Erlang
Wed Aug 11 09:44:22 CEST 2010
I have to stand up for OOP at this point: OOP does not start and end with
"encapsulating code and data". The OOP feature that has the strongest impact
on code brevity is *inheritance*. Thus, the interest in extending modules.
Also, IMHO, parameterized modules are a more compact way to encapsulate code
and data, since that you don't have to pass the data structure around as an
explicit state (assuming, of course, that the data is immutable).
On Wed, Aug 11, 2010 at 5:17 AM, Ngoc Dao <> wrote:
> The mostly used feature of OOP is probably encapsulating code and
> data. Have a look at gen_server:
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
More information about the erlang-questions