Abstract form

Vlad Dumitrescu XX (LN/EAB) <>
Thu Dec 29 12:42:14 CET 2005


Hi!
 
I don't usually complain about things ;-) but I find this rather
annoying.
 
erl_parse:abstract([3,a,5]). --->
    {cons,0,{integer,0,3},{cons,0,{atom,0,a},{string,0,[5]}}}

erl_parse...("[3,a,5]"). --->
 
{cons,1,{integer,1,3},{cons,1,{atom,1,a},{cons,1,{integer,1,5},{nil,1}}}
}

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
correct).
 
Is there a reason for this discrepancy?
 
Happy new year everybody!!
 
regards,
Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20051229/17a4f9f4/attachment.html>


More information about the erlang-questions mailing list