News for hackers. Stuff that matters.
Re:What's new in PHP 8? by systematical on Friday August 14, 2020 @12:21AM (#24153337)
nothing wrong with switch statements.
Re:What's new in PHP 8? by zowanet on Friday August 14, 2020 @03:47AM (#24155038)
Coerced-typed (weak) comparisons and easy accidental fallthrough are the problems commonly associated with switch statements.

The new match construct fixes both of these and is also an expression instead of a statement, allowing for more expressive code.