Car and cdr (Re: Python syntax in Lisp and Scheme)

Kenny Tilton ktilton at nyc.rr.com
Mon Oct 13 05:33:46 EDT 2003



Pascal Costanza wrote:

> Rayiner Hashem wrote:
> 
>>> From that point of view, "car" and "cdr" are as good
>>> as anything!
>>
>>
>> Well, if you're going to call the thing a 'cons' you might as well go
>> all the way and use 'car' and 'cdr' as operators. A little flavor is
>> nice, although I think that "4th" would be easier to read than
>> "cadddr"...
> 
> 
> ...but cadddr might not be "fourth". It might be some leaf in a tree. Or 
> something completely different. "fourth" doesn't always make sense.
> 
> (And just for the sake of completeness, Common Lisp does have FOURTH and 
> also (NTH 3 ...).)
> 

And it maxes out at ten:

    http://www.lispworks.com/reference/HyperSpec/Body/f_firstc.htm#tenth

Doesn't seem right for a language that goes to eleven.*

:)

kenny

* That's one more, isn't it?

-- 
http://tilton-technology.com
What?! You are a newbie and you haven't answered my:
  http://alu.cliki.net/The%20Road%20to%20Lisp%20Survey





More information about the Python-list mailing list