[erlang-questions] Is export always better than complie(export_all)?

Bengt Kleberg <>
Thu Jun 20 08:10:02 CEST 2013


Greetings,

When you use export_all, all functions in the module have to remain
backwards compatible. Or you have to go over all other lines of code
since they might use any function you change.

With -export(). only exported functions need to be backwards compatible.
Or trigger a check when you change them.


bengt

On Thu, 2013-06-20 at 13:57 +0800, 饕餮 wrote:
> I'm working in a program as 10,000 line code.
> Most of the time the function are changing.
> Like and some new function or change some old.
> The program is not so big that we have no document to describe our
> module.
> And all the team member should read all of the code.
> And I usually use compile expert_all because I feel it make the work
> easier to handle
> But one of my teammate said that I must never use export_all.
> It's that necessary to use export() instead of compile(export_all)?
> And what's the reason to use export?
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list