[erlang-questions] Style wars: junk comments

Richard O'Keefe <>
Fri Sep 14 06:42:52 CEST 2012

On 14/09/2012, at 11:56 AM, Steve Davis wrote:
> There *is* an issue between making a distinction between -export for API use and -export needed for use only within the app or library.

That is what -export_to was invented for.  It's not just that you
want to >say< that something is exported for very specific reasons,
you want to >enforce< that it's only usable by things you mean to
export it to.  It is also more precise than "internal exports",
which I used to think only meant functions exported back to the
module itself for use with 'apply'.

The intellectual debt to Eiffel's {targeting} of feature availability
seems obvious, but if memory serves me correctly, I thought of
-export_to before I learned Eiffel.

More information about the erlang-questions mailing list