[erlang-questions] Why we need a -module() attribute?

Richard A. O'Keefe ok@REDACTED
Thu Feb 25 23:24:48 CET 2016

If all module names are unique then we can put all the modules in one 
> so we'll know where to find them - so several very difficult problems go away.

Let me mention one problem with Erlang/OTP as it stands,
which to me *DWARFS* every syntax issue and always has.

One of the charges that always used to be laid against the
UNIX V7 manuals was that the distinction between volume 2
(system calls) and volume 3 (library) was utterly opaque to
most programmers.

In precisely the same way, I have always found it annoying
that we have
   Erlang documentation
     Application Groups
           **erlang and file are here
           **lists and io are here

I constantly find myself flipflopping between kernel and stdlib
grumbling "where did they hid THIS one?"

Sigh.  I know what I should do.  I should stop kvetching and make
my *own* web page with precisely the links I need, just visiting
the official page when I need to add something new.

But honestly, the distinction between kernel and stdlib really seems
to be uncannily like the distinction between UNIX volume 2 and
UNIX volume 3, and *just as unhelpful*.

One thing about the Java online API documentation, you get a
scrolling list with the name of *every* class.

More information about the erlang-questions mailing list