[erlang-questions] 回复: Isexport always better than complie(export_all)?

饕餮 <>
Thu Jun 20 08:10:17 CEST 2013


I know the usage of -expert().
But why it so important?
Why should we always use -expert() but not compile(expert_all)?
What's the benefit?


------------------ 原始邮件 ------------------
发件人: "goofansu"<>;
发送时间: 2013年6月20日(星期四) 下午2:07
收件人: "饕餮"<>; 
抄送: "erlang-questions"<>; 
主题: 回复: [erlang-questions] Isexport always better than complie(export_all)?



                 Hi,

Exported functions are interfaces to the outsides. 


Once these functions are used heavily, it is difficult to change a function. 
For example, add/remove a parameter or change the function's name.



                 

-- 
goofansu
已使用 Sparrow



                                   
在 2013年6月20日星期四,下午1:57,饕餮 写道:
                                      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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130620/4584b944/attachment.html>


More information about the erlang-questions mailing list