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).

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to