Re: Operation options (filtering, sorting and more)
- From: Guillaume Emont <gemont igalia com>
- To: grilo-list gnome org
- Subject: Re: Operation options (filtering, sorting and more)
- Date: Tue, 15 Mar 2011 18:49:52 +0100
On 15/03/2011 18:10, Juan A. Suárez Romero wrote:
> On Tue, 2011-03-15 at 17:48 +0100, Guillaume Emont wrote:
>>> Both might inherit from a parent GrlOptions, and even this
>> GrlOptions
>>> could be an aggregation of different options: source would get a
>>> GrlOptions element, and it could extract from it the
>> GrlOptionsFilter
>>> and the GrlOptionsSort to do the job.
>> Well, in the future, if we really feel it's needed, I guess we can
>> regroup some members of the GrlOperationOptions structure into some
>> structures, but I really can't see the point of having these
>> structures
>> inherit from GrlOperationOptions. I think a good rule of thumb for
>> that
>> is "if you can do it with composition, don't do it with inheritance".
>>
>
>
> Sorry, when I meant "inheriting" I was not strictly thinking about
> inheriting in the gobject sense: just having a way that GrlOptions is
> just a place where user can set up different options, but the options
> are structures themselves: GrlOptionFilter or GrlOptionSort.
I think what you describe here is called composition :)
>
>
> J.A.
>
>
> _______________________________________________
> grilo-list mailing list
> grilo-list gnome org
> http://mail.gnome.org/mailman/listinfo/grilo-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]