[erlang-questions] Random newbie stuff

Francis Norton <>
Sun Nov 4 18:33:05 CET 2007


I'm also an Erlang newbie, coming from C#. I've tried to put aside my OO
preconceptions, but it seems to me that there are some useful conceptual
mappings - can I check a couple?

Would it be fair to say that Erlang Behaviours achieve code re-use by
implementing, in the sense of Martin Fowler's article (
http://martinfowler.com/articles/injection.html), the Inversion of Control
pattern with Constructor (or is it Setter?) Dependency Injection?

And would it also be fair to describe Vance's Cascading_Behaviours as adding
more code re-use via the Decorator pattern (
http://en.wikipedia.org/wiki/Decorator_pattern), at least when taking the
option of exporting an identical interface to the callback module as
imported?

Francis.

On 04/11/2007, Vance Shipley <> wrote:
>
> Brandon,
>
> I have used what I call cascading behaviours to accomplish what
> you describe.  I wrote about it here:
>
>         http://www.trapexit.org/Cascading_Behaviours
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20071104/e4ddb495/attachment.html>


More information about the erlang-questions mailing list