Re: [RFC] Match expression
| From: | lists@rhsoft.net | Date: | Sun, 10 Sep 2017 19:22:33 +0000 |
| Subject: | Re: [RFC] Match expression | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-100508@lists.php.net to get a copy of this message | ||
Am 10.09.2017 um 21:16 schrieb Theodore Brown:
On Sunday, September 10, 2017 12:45 PM Rowan Collins <rowan.collins@gmail.com> wrote:where did you seeThat seems more complicated and confusing than either of the other options. NormallyWhat do either of you think of my "switch-use" proposal, which would spell this as "switch ($i) use (===)"?Would it be possible to add an optionalI'd very much prefer a "strict switch ($i) { ... }" over a second parameter.$strictparameter to switch? E.g.switch ($i, true) {use()is for inheriting variables in anonymous functions.
use() in the proposed SYNTAX?
hint: it's not there
it's just "strict switch" versus "switch"