4 ms·
>And a colleague of mine is a huge fan of the new "match" keyword - he's working on a sports management application, and of course he had a "Match" class, used
by acomjean 4y ago
>And a colleague of mine is a huge fan of the new "match" keyword - he's working on a sports management application, and of course he had a "Match" class, used everywhere, which he had to rename...
Namespace?
- masklinn 4y agoIf match was made into a hard keyword, there's no fixing it, it just becomes forbidden as a bareword.
- rob74 4y agoWell yeah, I guess he could have prefixed every usage of the class with the namespace, but probably decided to rename it to have less verbose code...
- moritzwarhier 4y agoThis would be unneeded if PHP wouldn't have case-insensitive identifiers, right? But such a breaking change would of course be too much to ask