[erlang-questions] Erlang AST with locations
Bjorn Gustavsson
bjorn@REDACTED
Thu Oct 11 09:27:10 CEST 2007
"Kenneth Lundin" <kenneth.lundin@REDACTED> writes:
>
> I don't agree
> Why should it be important to have a erl_scan:binary?
> When it is so damn easy to do:
> {ok,Bin} = file:read_file(File),
> Str = binary_to_list(Bin),
> erl_scan:string(Str),
One reason is that the list will need 8 times as much memory (in 32-bit emulator)
as the binary.
/Bjorn
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list