4 ms·
> It doesn't have a real type system. It's dynamically typed under the hood, type declarations are just hints in PHP, the code will fail at runtime not compilat
by Zababa 5y ago
> It doesn't have a real type system. It's dynamically typed under the hood, type declarations are just hints in PHP, the code will fail at runtime not compilation time.
Just like Java then? Your average Java code will be more solid than your average PHP code of course, but Java is far from free from runtime errors due to a not good enough type system.
> You can argue subjectively for Python, Ruby or Node.js - to me these are all in the same class as PHP and have similar quality frameworks (Django, Rails, Nest.js) but are all objectively inferior to the production languages
> As someone with a background in all of these scripting languages I don't think it's possible without some crazy mental gymnastics to not see how the production languages are clearly superior for almost all professional use cases.
What is even a "production language"? Lots of people are using Ruby, Python and Node in production, and it's working very well for them.
> I think the most likely case is people that think otherwise just have never tried them, at least not seriously enough to really grasp them.
That's a strawman.
You seem to have a very black/white view about production vs non production languages, that mostly maps to "used by classical big companies", and that doesn't seem to reflect reality very well.