Re: [VOTE] Make empty() a Variadic
| From: | Pascal Martin, AFUP | Date: | Fri, 20 Mar 2015 22:43:49 +0000 |
| Subject: | Re: [VOTE] Make empty() a Variadic | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-85347@lists.php.net to get a copy of this message | ||
Le 07/03/2015 12:56, Thomas Punt a écrit :
I'd like to put the variadic empty() RFC to vote. RFC: https://wiki.php.net/rfc/variadic_empty Hi,Discussing this RFC with other people at AFUP, we ended up on the -1 side (by a thin margin). The main reason given against this proposal was that it would not be clear (when writing/reading code) whether it would test for "all empty / and" or "at least one empty / or" -- like you explained in one of your mails. And it appears this is, at least for us, more of a problem than writing several empty() in a row. In any case, thanks for your work! -- Pascal MARTIN, AFUP - French UG http://php-internals.afup.org/