Re: [Vala] [Libgee][RFC] Making Map<K, V> a Collection<Map.Entry<K, V> - Was: Libgee's Roadmap proposal
- From: Levi Bard <taktaktaktaktaktaktaktaktaktak gmail com>
- To: Didier Ptitjes <ptitjes free fr>
- 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: Thu, 23 Jul 2009 08:56:53 -0400
- Renaming Map.remove(K key) in Map.unset(K key)
- Renaming Map.contains(K key) in Map.has(K key)
- Make Map<K, V> inherit from Collection<Map.Entry<K, V>>
I like unset. "has" is not different enough from "contains" for my
liking - I can see it being a source of future confusion ("What's the
difference between contains and has?!").
How about something that's clearly map-related, the way "unset" is?
"maps"? "has_set"?
(For a point of reference, ruby uses "has_key?" and "has_value?".)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]