Re: [PATCH] GIterator



Hi,

Just to add a dissenting voice - I think GLib containers probably
should have been done with iterators in the first place, but failing
that, IMO having two ways to do iteration adds too much extra
complexity to be worth it. It's better if there's only one way to do
it.

We would end up sort of pseudo-deprecating all the foreach()
functions, all functions that return a list, list->next style
iteration, etc., and that's just too much churn in the "recommended"
API set, even if the old API still works.

Havoc



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