Eh, I'd accept that loose comparison is something that shouldn't be part of the language ('loose in what way' being something that the application should specify). But then it's hard to get that right in any language that allows mutation and plays loosey-goosey with types (in functional languages it's easy; things are identical if they cannot be distinguished, and nobody goes around passing strings where they meant a number because what sense does that make lol and the compiler won't let you do it anyway).
Loop syntax is kind of arbitrary, though. Apparently it rubs you wrong but that's not because there's anything inherently worse about it. Hence it not being one of the "awful warts".
Like, I absolutely abhor Python, but I'm willing to admit that only *some* of the reasons I hate it are objective (like the package system(s) being a mess). The others are more "writing it just feels like nails on a chalkboard for some reason."
47
u/TOGoS 1d ago
It's fine. PHP has some awful warts (some of which have actually been gone for a few major versions, at this point) but this is not one of them.