I know about import
. Thanks.
My point was different: mmm
does not export ANYTHING. So using
it will not lead to the problem of magically populating the namespace. The whole interface to the package is concentrated into mmm_API
, which exports the developer-selected set of symbols. So using
it would then be useful in the REPL and to document the interface to users, whereas using mmm: ...
would be used in the package code.
If mmm
exported things it would be very tempting to invoke using
(or perhaps it would be done inadvertently). In this way is import mmm
and using mmm
are one and the same from the point of view of getting access to symbols.
Getting access to everything that is exported is now explicit, not implicit.