[erlang-questions] OOP in Erlang

Robert Virding <>
Wed Aug 11 16:02:22 CEST 2010

On 11 August 2010 14:08, Attila Rajmund Nohl <> wrote:
> 2010/8/11, Ulf Wiger <>:
> [...]
>> In short, I have not missed OO when using Erlang in its original
>> domain. I have, on occasion, missed being able to conveniently
>> extend modules and override individual functions when working
>> on other things (e.g. like extending mnesia).
> This is something I also miss. I've seen way too many instances of
> code simply copied and only 2 functions were substantially changed out
> of 16. Of course, this can be refactored, but it just doesn't feel
> elegant.

That's just poor programming.

> But it's nothing compared to the headache caused by the four different
> ways to end a "statement": comma, full stop, semicolon or nothing.

Well, we have expressions. Look on the bright side you don't have to
wrap with unnecessary begin ... end blocks and have needless
connecting words like 'else' spread everywhere like you do in less
well-designed languages. If you really need a more classic style
syntax look at Lisp Flavoured Erlang or Effene (albeit different


More information about the erlang-questions mailing list