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

Benoit Chesneau <>
Fri Feb 19 13:39:44 CET 2016


> On 19 Feb 2016, at 12:32, Loïc Hoguin <> wrote:
> 
> I've mentioned that at the beginning of the thread. We're going circles now. :-)
> 
> I really don't think getting rid of the mandatory -module attribute is such a hard problem to solve...


for myself I am now wondering why we dont have a `-module` block and then ignoring the filename completely.

    -module(some).
    -endmodule.

- benoit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160219/69b36f05/attachment.html>


More information about the erlang-questions mailing list