I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
I'd never heard of it. It looks better than switch for most things, but oh dear the syntax is horrid with those arrows. It makes it look like it should be an associative array.
I love the match expression. Such a shame that so many existing codebases are stuck with older versions PHP.
I'd always opt for Match in PHP 8 😊
I'd never heard of it. It looks better than switch for most things, but oh dear the syntax is horrid with those arrows. It makes it look like it should be an associative array.
BTW one key difference between match and switch is that match uses strict comparison whether switch doest not