From ... From: Erik Naggum Subject: Re: CAR, CADR, etc. vs FIRST, SECOND... (was Re: Please help (syntax problems?)) Date: 1999/02/22 Message-ID: <3128669611030356@naggum.no>#1/1 X-Deja-AN: 447025251 References: <36D0789B.F06D62FD@top.cis.syr.edu> <7aqd19$ob1$1@news.hal-pc.org> <36D0EC7A.D1284BD2@fisec.com> <87zp66kf4f.fsf_-_@2xtreme.net> mail-copies-to: never Organization: Naggum Software; +47 8800 8879; http://www.naggum.no Newsgroups: comp.lang.lisp * cbarry@2xtreme.net (Christopher R. Barry) | One thing I dislike about using FIRST, SECOND and friends is if you ever | want something like CDADR then your code is kinda - I don't know what the | word I'm looking for is - "inconsistent" will have to do. Using SECOND to | take the CADR of a list and then taking the CDADR of the same list just | doesn't seem to be the most aesthetically pleasing thing to do to me. think of FIRST and SECOND as accessors into the first level of a list. think of CxR as accessors into a tree. if you see (rest (second X)) and think CDADR is a better choice, you may need to think about what you're representing. chances are a structure or class is a better choice than a list, or that destructuring things before proceeding is more legible. #:Erik