On 12 July 2017 at 12:01, Dimitris Papastamos <[email protected]> wrote:
> On Tue, Jul 11, 2017 at 10:49:53AM -0700, Michael Forney wrote:
>> On 7/11/17, Laslo Hunhold <[email protected]> wrote:
>> > On Mon, 10 Jul 2017 21:55:40 -0700
>> > Michael Forney <[email protected]> wrote:
>> >
>> > Hey Michael,
>> >
>> > what's wrong with queue.h?
>>
>> The simple linked list I proposed uses the same amount of code, and is
>> easier to understand because it isn't hidden behind a bunch of macros.
>>
>> What's the advantage of queue.h over what I proposed?
>
> the implementation is uninteresting either way i think. the advantage
> is that you can easily switch your code to use a different type of list
> if required. also many people are already familiar with these macros.

I'm in favour for explicit data structs if it is about lists or
queues. In the worst case, it could be compiled in weird environments
without 4.4BSD support.

BR,
Anselm

Reply via email to