On Mon, 16 Aug 2010 15:22 -0700, Michael Jennings wrote :
> On Monday, 16 August 2010, at 19:15:02 (-0300),
> Lucas De Marchi wrote:
> 
> > 6) i = a == NULL;                    => i = !a;
> > 7) i = a != NULL;                    => i = !!a;
> > 
> > Those four are valid also for while loops.
> > 
> >    Eina_Bool func(char *a)
> >    {
> > 8)    return a == NULL;            => return !a;
> > 9)    return a != NULL;            => return !!a;
> >    }
> > 
> > 
> > int func2(Eina_Bool b) { return 0; }
> > 
> > ...
> > char *a;
> > 
> > 10) func2(a == NULL);                   => func2(!a);
> > 11) func2(a != NULL);                   => func2(!!a);
> 
> Those significantly reduce readability IMHO.

I agree with Michael here.

Cheers,
-- 
Albin Tonnerre

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to