Op za 28 mrt. 2020 13:40 schreef Ilija Tovilo <tovilo.il...@gmail.com>:
> Hi internals > > Apparently my previous emails were classified as junk (very > flattering). Hopefully that issue is fixed now. > > I'd like to move the RFC switch expression to "under discussion". It > tries to address some of the common issues with the switch statement > by introducing a new switch expression. > > https://wiki.php.net/rfc/switch_expression > > I'm looking forward to your constructive feedback! > > Ilija > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php A minor remark; `InvalidArgumentException` really isn't applicable. No function is called, so there are no arguments. You'd throw an `UnexpectedValueException`. However, operations don't ever throw exceptions, but throw an error instead.