Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec
Home

[Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: i-freeciv-lists@xxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Sat, 22 May 2004 04:02:52 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8800 >

On Sat, 22 May 2004, Raimar Falke wrote:

> Currently we have a lot more speclist users than specvec. So I propose:
>  - change the specvec interface to be very similar to the speclist one:
>    * free vs unlink
>    * add copy and reserve to speclist

I have nothing against adding extra functionality to speclist, quite the
contrary.

>  - keep the number of specvec users low
>
> A unified interface would get flags passed to init like
> "many-inserts", "many-deletes", "only-append", "many-indexed-gets" and
> so on. The init() function will than choose one implementation.

How about just assuming the programmer knows what he/she is doing and
making the API serve him instead of getting in his way? This sort of thing
just makes code even more opaque and harder to understand.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa




[Prev in Thread] Current Thread [Next in Thread]