Re: [Vala] [Libgee][RFC] Making Map<K, V> a Collection<Map.Entry<K, V> - Was: Libgee's Roadmap proposal
- From: Jiří Zárevúcky <zarevucky jiri gmail com>
- To: Ali Sabil <ali sabil gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] [Libgee][RFC] Making Map<K, V> a Collection<Map.Entry<K, V> - Was: Libgee's Roadmap proposal
- Date: Fri, 24 Jul 2009 02:21:14 +0200
2009/7/24 Ali Sabil <ali sabil gmail com>:
On Thu, Jul 23, 2009 at 10:32 AM, Didier "Ptitjes"<ptitjes free fr> wrote:
Please comment and argue ;)
Could you please explain the rationale behind this change ? What would
be the benefit from turning a Map into a collection of Pair ?
Efficient iteration over all the Map's elements. Otherwise you'd have
to retrieve a collection of keys and lookup corresponding value for
every single one of them.
what is the exact benefit from deviating from what other widespread
class libraries use for their containers ?
Define "widespread class libraries" and "deviation". If you mean Map
becoming Collection, .NET framework uses this approach for years and I
don't hear anyone complaining.
] [Thread Prev