[erlang-questions] avoid -import. Why?

Anthony Kong anthony.hw.kong@REDACTED
Mon Jul 9 00:00:46 CEST 2007


Hi, all,

In reading this resource (
http://www.erlang.se/doc/programming_rules.shtml,
), I found this statement,

Don't use -import, using it makes the code harder to read since you
cannot directly see in what module a function is defined. Use exref
(Cross Reference Tool) to find module dependencies.

I do not think I understand why it is the case, and could not find the
tool exref from the erlang distribution.

If anyone can shed some light, most appreciate.

Cheers, Anthony

-- 
/*--*/
Experience is simply the name we give our mistakes.
---- Oscar Wilde



More information about the erlang-questions mailing list