Fri Dec 30 11:53:07 CET 2005
Vlad Dumitrescu XX (LN/EAB) wrote:
> I don't usually complain about things ;-) but I find this rather annoying.
> erl_parse:abstract([3,a,5]). --->
> erl_parse...("[3,a,5]"). --->
> I would expect the result to be the same, but abstract/1 treats lists of
> integers as strings, while erl_parse doesn't (the latter being IMHO
Try erl_syntax:abstract/1 instead - I think it tries to avoid creating
"mixed" representations. You may have to use erl_syntax:revert/1 on the
result if you want the representation to be erl_parse-compatible.
More information about the erlang-questions