foo::bar(...)

Luke Gorrie luke@REDACTED
Thu Sep 26 15:00:30 CEST 2002


Hi all,

I suggest that Erlang be extended to allow calling unexported
functions. This could be restricted to the shell to avoid any
software-engineering objections. The syntax could be "::", like:

  foo::bar(1)

This would let you use the shell to test logically module-internal
functions without having to toggle "-compile(export_all)" all the
time. Sensible people get annoyed when I checkin export_all's to CVS,
and I get annoyed when I need to toggle it on/off between checkins
while actively hacking/testing modules. This seems like a nice
balance?

The idea is borrowed from Common Lisp.

Cheers,
Luke




More information about the erlang-questions mailing list