Re: [Vala] Libgee's Roadmap proposal



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 Collection.is_empty() - property or method ?

It is the same here as above.

But those could equally be represented as a property or method.
Properties may only be gettable and have a real function body to be
implemented. The only difference is from the point of view of the user,
having to add a parenthesis pair or not.

I see properties more as some kind of invariants, something structural.
The "empty" state of a collection looks better as a method to me, but
it's just me.

        Xav






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