[erlang-questions] Re: Parameterized module idioms
Hynek Vychodil
hynek@REDACTED
Sat Apr 17 12:57:33 CEST 2010
> For example, [unless you're doing some crazy rewriting tricks] it's
> obvious which function this is calling:
>
> some_module:echo(E, "hello")
>
> This isn't so obvious:
>
> E:echo("hello")
>
> Here you have to trace back to the definition of E to find out what
> module it refers to.
I agree with you. It is issue especially in projects with lack of
documentation as mochiweb for example. I thought parametrized modules
is great idea until I met mochiweb.
Hynek (Pichi) Vychodil
More information about the erlang-questions
mailing list