[$] The winding road to PHP 8’s match expression

Post Syndicated from coogle original https://lwn.net/Articles/830206/rss

New to the forthcoming PHP 8.0 release is a feature called match
expressions, which is a construct designed to address several shortcomings in
PHP’s switch statement. While it took three separate
request-for-comment (RFC) proposals in order to be accepted, the new
expression eventually received broad support for inclusion.