Improper lists [was: Dialyzer v1.3.0 released]

Thomas Lindgren <>
Thu Mar 24 17:07:35 CET 2005


--- Dominic Williams <>
wrote:

> This sounds interesting. I don't yet have enough
> Erlang (or Lisp) experience to understand, though.
> I would really appreciate an explanation or an
> example!

My guess is that they like the following
(implementation-) property: [X|Y] requires 2 words,
while {X,Y} requires 3 words. 

So storing a pair as a cons saves 33% memory. Also,
it's generally somewhat faster to access conses than
tuples :-)

Best,
Thomas



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail



More information about the erlang-questions mailing list