[erlang-questions] Some ideas for the shell.
Tue Dec 5 13:59:40 CET 2017
You also have file:eval/1 and file:script/1. (And "path_..." versions of
2017-12-05 4:51 GMT+01:00 Richard A. O'Keefe <ok@REDACTED>:
> On 4/12/17 8:21 PM, bengt e wrote:
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions