[erlang-questions] The -module line

Aggelos Giantsios aggelgian@REDACTED
Fri Nov 21 12:41:49 CET 2014


On Fri, Nov 21, 2014 at 1:36 PM, Jonathan Schneider <jon@REDACTED>
wrote:

> Personally I’d like the restriction that the names are the same to be
> removed altogether.
>
> Is there a good reason for it ?
>

Well I guess if you are searching for a specific module in a folder with
many .erl files, you would like to be looking for the *module_name*.erl
rather than opening all the files one by one or greping the -module
attribute.

Aggelos


>
> Jon
>
>
> On 21 Nov 2014, at 11:21, Loïc Hoguin <essen@REDACTED> wrote:
>
> > Hi,
> >
> > Something has been bugging me for a very long time now.
> >
> > The -module line is mandatory. It also must be the same as the file name
> minus the extension .erl or compilation fails.
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141121/ae360ba6/attachment.htm>


More information about the erlang-questions mailing list