Re Tomaž,
Quikee wrote:
Anyway I have partially done this. Now I have added to collection
interface methods:
- is_empty()
Do we make this a property or a method ?
- add_all(CollectionG collection)
- contains_all(CollectionG collection)
- remove_all(CollectionG collection)
-
Hi,
Le jeudi 23 juillet 2009 à 14:32 +0200, Didier Ptitjes a écrit :
Quikee wrote:
Hi,
- is_empty()
Do we make this a property or a method ?
I think this should be a method as it generally is only a convenience
method for size property.
- is_empty()
Same comment as for
2009/7/20 Didier Ptitjes ptit...@free.fr:
- Are there some things missing ?
I have another proposal.
Currently, number of elements in a collection is reflected in the
size property. In many cases, that's a nonsense. For example, in
HashMap, number of set keys can hardly be considered a size
Hi,
A little more than a year ago I have made a proposal to extend LibGee
when I rewrote the tests for it, but at that time there was not much
interest in the changes. It may be good to repeat what I had in mind
at that time:
I would also like to propose an extension to the interfaces in form
Hi list,
I tweaked the road map to include more of the things proposed here. I
did not include the little stuff, but I'll create tickets for them.
The road map is published here: http://live.gnome.org/Libgee/Roadmap
Thanks to Julien for its Wiki integration :)
As you might note I post-dated the
Hi Didier,
- Does some want a convenience Tuple (or Pair) class ?
YES! They're very helpful.
What services would you need on such a class ? (Apart from wrapping the
two values :))
Equality tests (pairs and tuples),
Swapping elements (pairs),
Adding from/to other (pairs, tuples),
Slicing
Hi Julien,
Julien Fontanet wrote:
Didier Ptitjes ptit...@... writes:
Yeah. I agree on that, hence my question in the first mail about
exposing an interface for map entries (that key/value pairs).
How is that possible, the methods' signatures do not match:
- Collection.add (G item) vs.
Hi list,
Didier Ptitjes wrote:
Open questions:
I'd like to add some more ideas:
- Support for disengageable collection change events
- Support for collection updatable views (aka wrappers)
- With events and views, we gain a clean implementation way for sorted
list views
- Collection
Dne 21. červenec 2009 17:06 Jiří Zárevúcky zarevucky.j...@gmail.com napsal(a):
2009/7/21 Julien Fontanet julien.fonta...@isonoe.net:
Didier Ptitjes ptit...@... writes:
Jiří Zárevúcky wrote:
2009/7/20 Didier Ptitjes ptitjes at free.fr:
- Are there some things missing ?
Could you fit
2009/7/21 Didier Ptitjes ptit...@free.fr:
Hi list,
Didier Ptitjes wrote:
Open questions:
I'd like to add some more ideas:
- Support for disengageable collection change events
Sounds interesting, but I'm not sure about a real value.
- Support for collection updatable views (aka
Hi,
Jiří Zárevúcky wrote:
2009/7/21 Didier Ptitjes ptit...@free.fr:
Hi list,
Didier Ptitjes wrote:
Open questions:
I'd like to add some more ideas:
- Support for disengageable collection change events
Sounds interesting, but I'm not sure about a real value.
Often one needs to describe
Dne 21. červenec 2009 19:02 Didier Ptitjes ptit...@free.fr napsal(a):
In fact, as shown in C5 documentation, union, intersection, ...
set-based operations are implementable with by one call of add_all,
remove_all, or retain_all on a Set object. Please look at the C5
documentation for more
- Are there some things missing ?
How about remove() for Iterator?
-- Jim
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
Hi,
- Does some want a convenience Tuple (or Pair) class ?
Please, add these.
- Are there some things missing ?
A compressed trie structure would be nice but there is no such thing for
GLib at the moment (with support for prefix matching etc.)
Thanks!
Regards,
J-P
__
Saunalahdelta
2009/7/20 Didier Ptitjes ptit...@free.fr:
- Are there some things missing ?
Could you fit in making Map interface a Collection? It is technically
a collection of key-value pairs, and I see no reason why the interface
shouldn't reflect it. :)
___
Hi Didier,
thanks for the update! It's great that someone picks up libgee.
Open questions:
- Is a singly linked list of interest ?
Not to me.
- Does some want a convenience Tuple (or Pair) class ?
YES! They're very helpful.
Thanks,
:M:
___
Jiří Zárevúcky wrote:
2009/7/20 Didier Ptitjes ptit...@free.fr:
- Are there some things missing ?
Could you fit in making Map interface a Collection? It is technically
a collection of key-value pairs, and I see no reason why the interface
shouldn't reflect it. :)
Yeah. I agree on that,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
- Are there some things missing ?
A compressed trie structure would be nice but there is no such thing for
GLib at the moment (with support for prefix matching etc.)
Well, I have the project to code a radix tree (already started a version in
18 matches
Mail list logo