Re: [VOTE] Removing Multiple Default Clauses in Switch Statements
| From: | Pascal MARTIN | Date: | Mon, 15 Sep 2014 10:35:43 +0000 |
| Subject: | Re: [VOTE] Removing Multiple Default Clauses in Switch Statements | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77216@lists.php.net to get a copy of this message | ||
Le 05/09/2014 22:29, Levi Morrison a écrit :
I have opened voting on this RFC: https://wiki.php.net/rfc/switch.default.multiple#vote Levi MorrisonHi, After speaking with other members of AFUP (French UG) about this RFC, we all agree that having two 'default' cases in a switch construct doesn't make much sense -- and should cause a syntax error for PHP 7. An E_DEPRECATED warning for PHP 5.7 is also nice for end-users, as it will help anticipating the migration to PHP 7. So, basically, +1 -- Pascal MARTIN http://blog.pascal-martin.fr @pascal_martin