[erlang-questions] newbie: why c.erl is special?
Richard Carlsson
richardc@REDACTED
Wed Mar 5 11:02:13 CET 2008
It was implemented a long time ago, but there was not a lot of
community enthusiasm for it, so it's not been made an official
part of the language yet. Still, it should work also in R12.
http://www.erlang.org/doc/man/packages.html
It was originally inspired by/ripped off from Java, but in
practice it's more similar to Lisp namespaces; see "The Complete
Idiot’s Guide to Common Lisp Packages" for details:
http://www.flownet.com/ron/packages.pdf
/Richard
Anthony Kong wrote:
> Is it already implemented? Because I found this document:
>
> http://www.erlang.se/publications/packages.html
>
> Anyway, I was unable to get it to work according to this info.
>
> Cheers, Anthony
>
> On Sun, Mar 2, 2008 at 12:38 AM, Thomas Lindgren
> <thomasl_erlang@REDACTED> wrote:
>> --- shiwei xu <xushiweizh@REDACTED> wrote:
>>
>> > I think flat module namespaces is a defect of erlang
>> > design.
>>
>> Richard Carlsson proposed java-like packages some
>> years ago, and the code for them might still be
>> provided in OTP. (I thought they had some flaws, but
>> they might be what you want.)
>>
>> http://citeseer.ist.psu.edu/398052.html
>>
>> The usual approach to handling name clashes without
>> packages is to use your 'approach 2', prefixing the
>> modules with their owner application.
>>
>> Best,
>> Thomas
More information about the erlang-questions
mailing list