[erlang-questions] Multiple modules

Joe Armstrong erlang@REDACTED
Thu Oct 5 10:38:31 CEST 2006


 I often have a number of small but related modules and it would be
nice to distributed them as a single file.

Conceptually an application *is* one thing - so I'd like to distribute one
file

/Joe

On 10/5/06, Vlad Dumitrescu <vladdu55@REDACTED> wrote:
>
> Hi,
>
> On 10/5/06, Joe Armstrong <erlang@REDACTED> wrote:
> > Modules ... thoughts
> >     1) distribute only one file
> >     2) modules in file cannot live a life of their own and become
> >        separated
> >     3) code loading is faster
>
> If the modules can't live a life of their own, why would they need to
> be separate modules? The only advantage I see would be a partitioning
> of the namespace, but is it a strong enough argument?
>
> Actually, I can see a possible application - only one module is
> visible externally and the others just support it and are hidden (i.e.
> the compiler mangles the name beyond accidental use). Then the module
> namespace would be cleaner too (and no more "app_module" names ;-)
>
> What would you like to use this for, Joe?
>
> regards,
> Vlad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20061005/79320faa/attachment.htm>


More information about the erlang-questions mailing list