Re: linked list rewrite

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: linked list rewrite
Date: 2004-03-24 02:28:59
Message-ID: 200403240228.i2O2SxY05508@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Neil Conway wrote:
> On 23-Mar-04, at 7:05 PM, Tom Lane wrote:
> > No, lcons is one of the names that I think we should stick with on
> > historical grounds. It's widely used in the backend and it has the
> > right connotations for anyone who's ever used Lisp.
>
> I think it has exactly the *wrong* connotations: the name suggests that
> it creates a new cons cell (along with the ensuing implications about
> performance and the internal implementation of the list), which is no
> longer the case.
>
> How about lprepend()? That allows for some symmetric with lappend().

Wow, I like that one!

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Wes Palmer 2004-03-24 02:39:42 Re: Solaris ecpg program doesn't work - pulling my hair
Previous Message Bruce Momjian 2004-03-24 02:28:03 Re: Solaris ecpg program doesn't work - pulling my hair out!

Browse pgsql-hackers by date

  From Date Subject
Next Message Jon Jensen 2004-03-24 02:36:52 Re: dollar quoting and pg_dump
Previous Message Andrew Dunstan 2004-03-24 02:28:17 Re: dollar quoting and pg_dump