Re: [PHP-DEV] Inline switch as alternative to nested inline conditional

2019-10-18 Thread Mike Schinkel
> On Oct 15, 2019, at 11:33 PM, Michał Brzuchalski > wrote: > > I have an RFC in draft for that and planning to finish it soon together > with some syntax optimisations - you can see it at > https://wiki.php.net/rfc/switch-expression-and-statement-improvement > > Cheers, > Michał Brzuchalski

Re: [PHP-DEV] Adding explicit intent for SWITCH/CASE fall through?

2019-10-18 Thread Mike Schinkel
> On Oct 18, 2019, at 4:45 AM, Markus Fischer wrote: > > On 18.10.19 00:07, Mike Schinkel wrote: >>case 'educationtype': >> $update = false; >> fallthrough; > > I was about to suggest `continue`, alas we know that would clash :-) > > Suggestion: `next;` instead? I am agnostic

Re: [PHP-DEV] Adding explicit intent for SWITCH/CASE fall through?

2019-10-18 Thread Mike Schinkel
> On Oct 17, 2019, at 11:14 PM, Bishop Bettini wrote: > > +1. It's 100% opt-in. People can keep using implicit fall-through, their own > /* fallthrough */ comments, or the new token. There's virtually no overhead > in the compile phase and it doesn't mess with the jump table optimizations. >

[PHP-DEV] PHP 7.4.0RC4 is available for testing

2019-10-18 Thread Derick Rethans
PHP 7.4.0RC4 has just been released and can be downloaded from: Or use the git tag: php-7.4.0RC4 Windows binaries are available at: Please test it carefully, and report any bugs in the bug system at .

Re: [PHP-DEV] Adding explicit intent for SWITCH/CASE fall through?

2019-10-18 Thread Rowan Tommins
Hi Bishop, I'm not the proposer, but would like to answer your questions anyway. On Fri, 18 Oct 2019 at 04:14, Bishop Bettini wrote: > Do you envision this token accepting an optional argument, as break does, > to fall-through multiple nesting levels? Eg: > > $x = $y = $z = 1; > switch ($x)

Re: [PHP-DEV] Re: Adding explicit intent for SWITCH/CASE fall through?

2019-10-18 Thread Markus Fischer
On 18.10.19 00:07, Mike Schinkel wrote: case 'educationtype': $update = false; fallthrough; I was about to suggest `continue`, alas we know that would clash :-) Suggestion: `next;` instead? - Markus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe,