[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]
<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
- [Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec, Jason Short, 2004/05/21
- [Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec, Raimar Falke, 2004/05/22
- [Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec, Jason Short, 2004/05/22
- [Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec, Jason Short, 2004/05/22
- [Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec, Raimar Falke, 2004/05/22
- [Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec,
Vasco Alexandre da Silva Costa <=
- [Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec, Per Inge Mathisen, 2004/05/22
- [Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec, Raimar Falke, 2004/05/22
- [Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec, Raimar Falke, 2004/05/22
- [Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec, Per Inge Mathisen, 2004/05/22
|
|