Live data from Hacker News

An Exceptional Change in PHP 7.0

daveyshafik.com

1–10 of 53 posts

Re: An Exceptional Change in PHP 7.0

#6

I just don't get why, of all the OO systems out there to inspire an engineer, the PHP people picked Java.

PHP is much more of a static language than a dynamic one. Therefore it has more in common with Java/C++ than with Python, Ruby, or JavaScript. It's also a very pragmatic choice for an OO system.

Re: An Exceptional Change in PHP 7.0

#8
post #6

I just don't get why, of all the OO systems out there to inspire an engineer, the PHP people picked Java.

PHP is much more of a static language than a dynamic one. Therefore it has more in common with Java/C++ than with Python, Ruby, or JavaScript. It's also a very pragmatic choice for an OO system.

PHP wasn't always what it is now, that's OPs point. They are where they chose to go. Probably in the search of legitimacy, they chose to follow the most enterprisey language.

Re: An Exceptional Change in PHP 7.0

#9

I just don't get why, of all the OO systems out there to inspire an engineer, the PHP people picked Java.

It has been picked for a long time now, so it is hard to put yourself in the heads of the designers at that time. Having said that, PHP OO (like C#, ActionScript, etc at that time) was probably inspired by Java for pragmatic reasons.

Re: An Exceptional Change in PHP 7.0

#10
post #8
post #6

Earlier quoted context omitted.

PHP is much more of a static language than a dynamic one. Therefore it has more in common with Java/C++ than with Python, Ruby, or JavaScript. It's also a very pragmatic choice for an OO system.

PHP wasn't always what it is now, that's OPs point. They are where they chose to go. Probably in the search of legitimacy, they chose to follow the most enterprisey language.

But you, like the OP, fail to communicate exactly WHY this is a bad thing. You just take it for granted that your point stands on its own without an explanation.

Why NOT Java?

Post reply on HN