export_all should only be used when debugging<div>In production you should only explicitly export the functions you need.</div><div><br></div><div>By exporting a subset of the functions:</div><div><br></div><div>- your programs are easier to understand.</div>
<div>- the compiler could perform better optimisations</div><div>- the type checker (dialyzer) can infer better types</div><div><br></div><div>/Joe<br><br><div class="gmail_quote">On Thu, Jun 20, 2013 at 7:57 AM, 饕餮 <span dir="ltr"><<a href="mailto:249505968@qq.com" target="_blank">249505968@qq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="font-size:14px;line-height:1.5">I'm working in a program as 10,000 line code.</span><br><div><div>Most of the time the function are changing.</div>
</div><div>Like and some new function or change some old.</div><div>The program is not so big that we have no document to describe our module.</div><div style="line-height:16.799999237060547px">And all the team member should read all of the code.</div>
<div>And I usually use compile expert_all because I feel it make the work easier to handle</div><div><span style="line-height:1.5;font-size:14px">But one of my teammate said that I must never use export_all.</span></div><div>
It's that necessary to use export() instead of compile(export_all)?</div><div>And what's the reason to use export?</div><br>_______________________________________________<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>
<br></blockquote></div><br></div>