Re: [RFC] Match expression

From: Date: Sun, 10 Sep 2017 17:45:31 +0000
Subject: Re: [RFC] Match expression
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-100506@lists.php.net to get a copy of this message
On 10/09/2017 17:27, Niklas Keller wrote:
2017-09-10 18:05 GMT+02:00 Theodore Brown <theodorejb@outlook.com>:
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 (===)"? Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#100506) next »