[erlang-questions] Why do we need modules at all?
Tue May 24 13:54:44 CEST 2011
> Where are two interpretations
> a) "when you *run* this program and find a call to foo:bar/2 go and see if
> you can find the code
> for foo, load it then call the function bar/2"
> b ) "When you *compile* this program find the code for foo:bar/2 and
> extract the code for bar/2 and include it in my code" - in this case you
> resolve the name at compile time.
> I guess when developing a) is useful but when you deploy code it should be
I completely agree. I'm also quite willing to loose the convenience of
(a) providing the compiler is fast enough.
More information about the erlang-questions