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

Richard A. O'Keefe ok@REDACTED
Thu Feb 25 01:36:18 CET 2016

On 25/02/16 1:28 pm, Raoul Duke wrote:
>> import Data.Text.ByteString.Lazy as B
>> That's not good.
>> good vs. perfect?
>> go does that, too, fwiw.

The problem is that two different files may refer to a third module
by different short names and may use the same short name to
refer to different modules.  At least with Erlang we use exactly
the same name everywhere.

A good solution will have some part of the name invariant.

More information about the erlang-questions mailing list