Re: Re: [RFC][DISCUSSION] Match expression v2

From: Date: Tue, 23 Jun 2020 08:54:30 +0000
Subject: Re: Re: [RFC][DISCUSSION] Match expression v2
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-110706@lists.php.net to get a copy of this message
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?
In this RFC the semicolon is required. Many people thought the grammar rules for the optional semicolon were confusing which is why I dropped that feature in this RFC. Ilija
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. If so I a counter argument could that it it is confusing for programmers, not so privy to all the ins and outs of PHP. Anyway, maybe a feature to consider for a future 8.1 RFC. r//Björn

Thread (28 messages)

« previous php.internals (#110706) next »