chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Question regarding "length"


From: Alejandro Forero Cuervo
Subject: Re: [Chicken-users] Question regarding "length"
Date: Mon, 29 May 2006 16:38:36 -0500
User-agent: Mutt/1.5.9i

> What is the list length of (1 . 2) anyway? Only 1 makes sense.

Hmm, I think throwing an error, —just like (length 'foo) does—, would
make more sense than returning 1 for (length '(1 . 2)).

Same goes for a circular list: throwing an error would make more sense
than failing to return, the small overhead required to detect circular
lists considered.

Alejo.
http://azul.freaks-unidos.net/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]