Re: [PHP-DEV] Re: [RFC][DISCUSSION] Match expression v2

2020-06-23 Thread Rowan Tommins
On Tue, 23 Jun 2020 at 09:54, Björn Larsson wrote: > > Ok, thanks for the clarification. The reason for me to bring > this up is that I was pondering on if this is the only place in > PHP where a semicolon is required after a curly bracket > when not used in an expression. > Two things: - as p

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Match expression v2

2020-06-23 Thread Björn Larsson
Den 2020-06-23 kl. 10:30, skrev Ilija Tovilo: Hi Björn I'd like to announce the match expression v2 RFC: https://wiki.php.net/rfc/match_expression_v2 Absolutely so. I was thinking of the case mentioned in v1 RFC when it's used as a stand-alone expression. match ($y) { ... }; ` Optional? I

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Match expression v2

2020-06-23 Thread Benas IML
Hey, On Tue, Jun 23, 2020, 11:34 AM Ilija Tovilo wrote: > Hi Benas > > >> I'd like to announce the match expression v2 RFC: > >> https://wiki.php.net/rfc/match_expression_v2 > > > Then it's not a standalone expression but a block. In this case, you > cannot add an optional semicolon at all. > >

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Match expression v2

2020-06-23 Thread Ilija Tovilo
Hi Benas >> I'd like to announce the match expression v2 RFC: >> https://wiki.php.net/rfc/match_expression_v2 > Then it's not a standalone expression but a block. In this case, you cannot > add an optional semicolon at all. > > But this RFC v2 is not proposing to add a block, therefore you won't

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Match expression v2

2020-06-23 Thread Benas IML
On Tue, Jun 23, 2020, 11:23 AM Björn Larsson wrote: > Den 2020-06-22 kl. 18:05, skrev Benas IML: > > > On Mon, Jun 22, 2020, 6:35 PM Björn Larsson > > wrote: > > > >> Hi Ilija,Den 2020-06-18 kl. 22:51, skrev Ilija Tovilo: > >> > >>> Hi Björn > >>> > > I'd like to announce the match expressio

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Match expression v2

2020-06-23 Thread Ilija Tovilo
Hi Björn >> I'd like to announce the match expression v2 RFC: >> https://wiki.php.net/rfc/match_expression_v2 > Absolutely so. I was thinking of the case mentioned in v1 RFC when it's used > as a stand-alone expression. > match ($y) { > ... > }; > ` Optional? In this RFC the semicolon is requi

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Match expression v2

2020-06-23 Thread Björn Larsson
Den 2020-06-22 kl. 18:05, skrev Benas IML: On Mon, Jun 22, 2020, 6:35 PM Björn Larsson wrote: Hi Ilija,Den 2020-06-18 kl. 22:51, skrev Ilija Tovilo: Hi Björn I'd like to announce the match expression v2 RFC: https://wiki.php.net/rfc/match_expression_v2 Well one could argue that when work

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Match expression v2

2020-06-22 Thread Benas IML
On Mon, Jun 22, 2020, 6:35 PM Björn Larsson wrote: > Hi Ilija,Den 2020-06-18 kl. 22:51, skrev Ilija Tovilo: > > > Hi Björn > > > >>> I'd like to announce the match expression v2 RFC: > >>> https://wiki.php.net/rfc/match_expression_v2 > >> Well one could argue that when working with legacy code co

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Match expression v2

2020-06-07 Thread Peter Stalman
On Fri, Jun 5, 2020 at 3:10 PM Ilija Tovilo wrote: > > Hi internals > > > I'd like to announce the match expression v2 RFC: > > https://wiki.php.net/rfc/match_expression_v2 > > Small reminder: Two weeks have passed since I announced the match v2 > RFC with little new discussion. I'll leave it open