News for hackers. Stuff that matters.
Re:Common Lisp in the 21st Century by AnimalMuppet on Monday February 10, 2014 @06:19PM (#7214503)
I presume you mean as opposed to "rest".

The problem is, it really is "rest" instead of "second", at least in the usual case. Yes, a cons cell can contain pretty much any two things, but the most-frequently-used case (or so I believe) is that of a list. In that case, "car" means "first element of the list", and "cdr" means "the entire rest of the list", not "the second element of the list".

Re:Common Lisp in the 21st Century by frou_dh on Monday February 10, 2014 @08:08PM (#7214997)
Personally I have found it useful to keep in mind that it's the pair that's fundamental and not the list. IIRC it was pg that made the point somewhere that car and cdr are acceptable because there really aren't any slam-dunk general terms for the parts of a pair.
Re:Common Lisp in the 21st Century by AnimalMuppet on Monday February 10, 2014 @08:43PM (#7215139)
True, and if you're thinking of them as a pair, then "first" and "second" are appropriate. But if you're using them to implement a list, then "second" is misleading.
Re:Common Lisp in the 21st Century by frou_dh on Monday February 10, 2014 @10:26PM (#7215588)
I'd probably go with "left" and "right" to get away from the implication of priority. I didn't type this using my first and second hands.

(bikeshedding acknowledged)