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

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?

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

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

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

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

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

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

2020-06-22 Thread Björn Larsson
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 containing switch statements where one gradually migrates to match, it might

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

2020-06-18 Thread 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 containing > switch statements where one gradually migrates to match, it might be > easier to have the same separator, i.e. ":".

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

2020-06-17 Thread Björn Larsson
Den 2020-06-16 kl. 18:17, skrev Ilija Tovilo: Hi Björn I'd like to announce the match expression v2 RFC: https://wiki.php.net/rfc/match_expression_v2 I do like this RFC and have one comment. Would it be suitable to have : as a separator instead of =>? `=>` is usually used in combination

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

2020-06-17 Thread Ilija Tovilo
Hi internals > I'd like to announce the match expression v2 RFC: > https://wiki.php.net/rfc/match_expression_v2 Last reminder: I'm opening the vote on Friday. The vote is going to be a straightforward yes/no vote. Ilija -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe,

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

2020-06-16 Thread Ilija Tovilo
Hi Björn >>> I'd like to announce the match expression v2 RFC: >>> https://wiki.php.net/rfc/match_expression_v2 > > I do like this RFC and have one comment. Would it be suitable > to have : as a separator instead of =>? `=>` is usually used in combination expressions (arrays, yield, arrow

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

2020-06-16 Thread Björn Larsson
Den 2020-06-06 kl. 00:09, skrev Ilija Tovilo: 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 for another two

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

2020-06-08 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

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

2020-06-05 Thread Ilija Tovilo
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 for another two weeks and put it to a vote then if there are no