Re: [RFC] Disallow multiple default blocks in a single switch statement
| From: | James | Date: | Wed, 13 Aug 2014 14:51:14 +0000 |
| Subject: | Re: [RFC] Disallow multiple default blocks in a single switch statement | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76488@lists.php.net to get a copy of this message | ||
Even if it is fall through that is causing the behavior it still is a
syntax that no longer will be considered valid in a minor release - and
seemingly in a point release as well if everyone had their way here. [:
Not that I consider code likehttp://3v4l.org/ <http://3v4l.org/mtG4K>mtG4K
<http://3v4l.org/mtG4K>a shining jewel but I could see
people using this
behavior. I also would like to second the notion that was brought up that
this is and has been in HHVM if 3v4l is to be believed. It even selects
the last default like PHP 5 does, not the first - again also brought up
before.