<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 21, 2014 at 1:36 PM, Jonathan Schneider <span dir="ltr"><<a href="mailto:jon@axismilton.ltd.uk" target="_blank">jon@axismilton.ltd.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Personally I’d like the restriction that the names are the same to be removed altogether.<br>
<br>
Is there a good reason for it ?<br></blockquote><div><br></div><div>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.</div><div><br></div><div>Aggelos</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Jon<br>
<span class="im HOEnZb"><br>
<br>
On 21 Nov 2014, at 11:21, Loïc Hoguin <<a href="mailto:essen@ninenines.eu">essen@ninenines.eu</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> Something has been bugging me for a very long time now.<br>
><br>
> The -module line is mandatory. It also must be the same as the file name minus the extension .erl or compilation fails.<br>
<br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div></div>