[erlang-questions] Some ideas for the shell.

Richard Carlsson carlsson.richard@REDACTED
Tue Dec 5 13:59:40 CET 2017


You also have file:eval/1 and file:script/1. (And "path_..." versions of
the same.)


        /Richard

2017-12-05 4:51 GMT+01:00 Richard A. O'Keefe <ok@REDACTED>:

>
>
> On 4/12/17 8:21 PM, bengt e wrote:
>
>> Greetings,
>>
>> Is 2) similar enough to file:consult/1, to maybe warrant it to be called
>> 'consult' instead?
>>
>
> file:consult/1 reads a file and (all going well) *returns a list of the
> terms* but does not process them.  This isn't all _that_ much like what
> (shell):include/1 is supposed to do.  import(...) was designed to mimic
> the -import directive and include(...) was designed to mimic the
> -include directive.
>
> I was actually thinking of it as analogous to the
> 'source <filename>' command in dbx, but using a name
> already familiar to Erlang programmers.
>
>
> _______________________________________________
> 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/20171205/1897d882/attachment.htm>


More information about the erlang-questions mailing list