Re: linked list rewrite - Mailing list pgsql-hackers

From Neil Conway
Subject Re: linked list rewrite
Date
Msg-id 633F3792-7D55-11D8-8EB3-000A95AB279E@samurai.com
Whole thread Raw
In response to Re: linked list rewrite  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: linked list rewrite
Re: linked list rewrite
List pgsql-hackers
On 23-Mar-04, at 10:31 PM, Tom Lane wrote:
> How do you mean it's no longer the case?  ListCell looks exactly like a
> cons cell to me.

Sorry, thinko on my part. I meant to say that lcons() is a Lispy name, 
which suggests a Lispy implementation. This is no longer the case. 
While lcons() isn't that bad of a name, I think it is more confusing 
than it is helpful.

It just doesn't strike me that "construction" is a very useful way to 
talk about what this operation is actually doing, and is asymmetric 
with lappend() for no good reason. The operation is "prepending" an 
element to an existing list, so why not give it a name that reflects 
that?

-Neil



pgsql-hackers by date:

Previous
From: Sailesh Krishnamurthy
Date:
Subject: Re: subversion vs cvs
Next
From: Tom Lane
Date:
Subject: Re: linked list rewrite