That's for the readability.
Let me give you an example:

Elm_Object_Item *it1, *it2; // it1 is a menu item, it2 is a toolbar item.
elm_object_item_xxx(it1,  ...);
elm_object_item_xxx(it2, ...);

vs

Elm_Object_Item *toolbar_item, *menu_item;
elm_object_item_xxx(menu_item, ...);
elm_object_item_xxx(toolbar_item, ...);

1st one is more confusing. We have to trace to see what widget item
we're handling.
But 2nd one is more descriptive, clearer, and easy to debug. We can
guess what widget item we're handling by variable name :)

As Hermet said, this can be decided by each application programmer,
but I also prefer the latter.
Thanks.

Daniel Juyung Seo (SeoZ)

On Fri, Dec 9, 2011 at 8:49 PM, Gustavo Sverzut Barbieri
<barbi...@profusion.mobi> wrote:
> On Fri, Dec 9, 2011 at 2:38 AM, Enlightenment SVN
> <no-re...@enlightenment.org> wrote:
>>
>> Log:
>> ephoto - more clear variable name
> ...
>> --- trunk/ephoto/src/bin/ephoto_slideshow.c     2011-12-09 04:35:35 UTC (rev 
>> 66052)
>> +++ trunk/ephoto/src/bin/ephoto_slideshow.c     2011-12-09 04:38:59 UTC (rev 
>> 66053)
>> @@ -19,14 +19,14 @@
>>    if (!strcmp(k, "Escape"))
>>      {
>>         Evas_Object *win = ss->ephoto->win;
>> -        Elm_Object_Item *item;
>> +        Elm_Object_Item *slideshow_item;
>
> huh? How slideshow_item is more clear than item? Actually in efl we'd
> call it "it". What's the point in this renaming?
>
> --
> Gustavo Sverzut Barbieri
> http://profusion.mobi embedded systems
> --------------------------------------
> MSN: barbi...@gmail.com
> Skype: gsbarbieri
> Mobile: +55 (19) 9225-2202
>
> ------------------------------------------------------------------------------
> Cloud Services Checklist: Pricing and Packaging Optimization
> This white paper is intended to serve as a reference, checklist and point of
> discussion for anyone considering optimizing the pricing and packaging model
> of a cloud services business. Read Now!
> http://www.accelacomm.com/jaw/sfnl/114/51491232/
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to