On Sep 10, 2017 1:23 PM, "li...@rhsoft.net" <li...@rhsoft.net> wrote:
Am 10.09.2017 um 21:16 schrieb Theodore Brown: > On Sunday, September 10, 2017 12:45 PM Rowan Collins < > rowan.coll...@gmail.com> wrote: > > Would it be possible to add an optional `$strict` parameter to >>>> switch? E.g. >>>> ``` >>>> switch ($i, true) { >>>> >>> >>> I'd very much prefer a "strict switch ($i) { ... }" over a second >>> parameter. >>> >> >> What do either of you think of my "switch-use" proposal, which would >> spell this as "switch ($i) use (===)"? >> > > That seems more complicated and confusing than either of the other > options. Normally `use()` is for inheriting variables in anonymous > functions. > > where did you see `use()` in the proposed SYNTAX? hint: it's not there it's just "strict switch" versus "switch" Rowan's suggestion included use. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php