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. Michael -- Michael Jennings (a.k.a. KainX) http://www.kainx.org/ <m...@kainx.org> Linux Server/Cluster Admin, LBL.gov Author, Eterm (www.eterm.org) ----------------------------------------------------------------------- "Can we leave the world outside just for awhile, just for awhile? Spend some time, you and I, under this bright, glorious sky? It's been so long since I first saw you, but I still love the smile in your eyes." -- Roxette, "Church of Your Heart" ------------------------------------------------------------------------------ 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