Le 06/02/13 22:22, Tyler Romeo a écrit : > So basically here's my goal (it's the same as if ( v. if( ). I don't care > about reaching consensus on either side, because such an attempt is futile.
I prefer unless( !$foo ) but that is just me. > The only thing I want to at least get some support on is that a given > patchset should not be blocked from merging just because it uses empty() in > a place where it's obviously OK to use it (for example, when you're > checking if a function argument is empty one line below the beginning of > the function). I discourage the use of empty(), it can leads to so many potential mistakes that is better to simply never use it. If I wanted to check an array is empty I would probably: count( $array ) === 0 cheers, -- Antoine "hashar" Musso _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
