[erlang-questions] The -module line
Fri Nov 21 12:41:49 CET 2014
On Fri, Nov 21, 2014 at 1:36 PM, Jonathan Schneider <>
> 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
> On 21 Nov 2014, at 11:21, Loïc Hoguin <> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions