3 ms·
The PHP deal-breaker is that it casts[0] string keys that contain "valid decimal integers" to "the integer type"? Seems like a fairly minor language quirk (of
by romellem 6y ago
The PHP deal-breaker is that it casts[0] string keys that contain "valid decimal integers" to "the integer type"?
Seems like a fairly minor language quirk (of which almost every language has) rather than a huge feature that makes one want to avoid the language at all cost.
Of course, feel free to make your own choice when picking a language, but I don't think this is a compelling reason why one would always want to avoid using PHP for their web backend.
[0]: https://www.php.net/manual/en/language.types.array.php https://www.php.net/manual/en/language.types.array.php
- ragnese 6y agoI'm getting quite tired of the nonsense straw men in this discussion. Do you truly believe that I articulated that there was exactly one reason that I think PHP hinders developer productivity? And of course, we brought out the old "every language has quirks" apology. Yes, you can bang a nail in with a rock. But, don't. Use a hammer. Do better, please.