Re: [VOTE] match expression
| From: | Sebastian Bergmann | Date: | Sun, 26 Apr 2020 08:25:05 +0000 |
| Subject: | Re: [VOTE] match expression | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109852@lists.php.net to get a copy of this message | ||
Am 26.04.2020 um 10:15 schrieb Marco Pivetta:
By enforcing only expressions to be on the right-hand-side, we get some nice side-effects too: * no need to discussMakes sense to me.continue* no need to discussbreak* no need to discussreturnOverall, that would be a win-win.
A point has been risen about the fact that using closures increases memory usage and stack frames: that's a compiler optimization concern, and probably also a minor one, since I'd discourage procedural code on the RHS anyway :-)Agreed.
I'd be voting YES on the RFC if the blocks were gone.Same (I think).