[erlang-questions] OOP in Erlang

Guy Wiener wiener.guy@REDACTED
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).

Guy


On Wed, Aug 11, 2010 at 5:17 AM, Ngoc Dao <ngocdaothanh@REDACTED> wrote:

> The mostly used feature of OOP is probably encapsulating code and
> data. Have a look at gen_server:
> http://www.erlang.org/doc/man/gen_server.html
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>


More information about the erlang-questions mailing list