Improper lists [was: Dialyzer v1.3.0 released]

Carsten Schultz carsten@REDACTED
Tue Mar 29 18:59:47 CEST 2005


On Tue, Mar 29, 2005 at 01:42:09AM -0800, Thomas Lindgren wrote:
> 
> --- Carsten Schultz <carsten@REDACTED> wrote:
> 
> > Some of the messages were like
> > 
> >     Cons will produce a non-proper list since its
> > 2nd arg is 
> >     (() -> possibly_improper_list())!
> > 
> > This looks to me like a lazy list, so I can
> > understand that [ | ] is
> > used.
> 
> Unless destructive assignment has crept back in, that
> doesn't seem lazy to me.

Of course, you are right.  So they are simply non-strict or whatever.

To get real laziness, one caching process per cons cell could be used
;-)

Carsten

-- 
Carsten Schultz (2:38, 33:47)
http://carsten.codimi.de/
PGP/GPG key on the pgp.net key servers, 
fingerprint on my home page.




More information about the erlang-questions mailing list