Re: linked list rewrite
Bruce Momjian <pgman@candle.pha.pa.us>
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Neil Conway <neilc@samurai.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2004-03-24T00:00:59Z
Lists: pgsql-hackers
Tom Lane wrote: > Bruce Momjian <pgman@candle.pha.pa.us> writes: > > What does the 'n' stand for in ncons? I also felt that lcons > > (construct) and nconc(concat) were too similarly named. > > I think nconc is a direct copy from the Lisp original; whatever its > origins are, they're back in Lisp prehistory. I don't mind renaming > that one ;-) I found out why it is called Nconc: The name comes from CommonLisp: 'conc' for 'concatenate', prefixed by the 'n' which signals a dangerous function modifying existing lists. (Think of as as n-for-nuke.) from: http://www.muq.org/~cynbe/muq/mufref_437.html -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073