[RFC] Disallow multiple default blocks in a single switch statement
| From: | Sara Golemon | Date: | Wed, 06 Aug 2014 04:38:51 +0000 |
| Subject: | [RFC] Disallow multiple default blocks in a single switch statement | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-76368@lists.php.net to get a copy of this message | ||
https://wiki.php.net/rfc/switch.default.multiple
'Cause this code is silly (even if it had case blocks), but we allow it:
switch ($expr) {
default:
notExecuted();
break;
default:
executed();
}