Re: g_hash_table_get_keys()/g_hash_table_get_values()



Havoc Pennington <hp@redhat.com> writes:

> Federico Mena Quintero <federico@helixcode.com> writes: 
> > I think this is gratuitous sugar.
> >
> 
> I'm using it a couple times in my new GTK patches anyway, so it's not
> going to add any bloat.
>  
> > Sometimes you want a GSList, sometimes a GList, sometimes an array;
> > sometimes you want to stash things in a tree. 
> 
> Sometimes, but usually a GSList is fine.

A GList is more convenient than a GSList a lot of the time; GList
seems to me to be used more commonly, and people have custom list
operations that work on it, which it would be annoying to have to
duplicate. You'd also have to convert before calling various APIs that
expect a GList.

 - Maciej




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]