Re: [VOTE] match expression

From: 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 discuss continue * no need to discuss break * no need to discuss return Overall, that would be a win-win.
Makes sense to me.
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).

« previous php.internals (#109852) next »