[erlang-questions] Some ideas for the shell.

bengt e cean.ebengt@REDACTED
Mon Dec 4 08:21:49 CET 2017


Greetings,

Is 2) similar enough to file:consult/1, to maybe warrant it to be called
'consult' instead?

bengt

On Mon, Dec 4, 2017 at 1:09 AM, Richard A. O'Keefe <ok@REDACTED>
wrote:

> There are two things that would make life easier for me using the
> Erlang shell, and I thought I'd ask for thoughts here before writing
> them up as EEPs.
>
> (1) import(Module, Functions)
>     where Functions is a list of {Name,Arity} pairs.
>     Effect: calls to that function from the shell don't need a
>     Module prefix, just like -import directives in files.
>
>     Reason: I often want to call a function or a small number of
>     functions many times to explore it or test it.
>
> (2) include(FileName)
>     Effect: reads FileName as a sequence of Erlang expressions and
>     interprets them as if typed into the same shell.
>
>     Reason: set up constants and imports.
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20171204/8ca80d00/attachment.htm>


More information about the erlang-questions mailing list