Linked by Kroc Camen on Sat 20th Dec 2008 17:54 UTC
General Development IBM delves into what's new in PHP 5.3: Part-1 shows you the changes to the object-orientated capabilities, and Part-2 shows you the exciting new possibilities with real closures and lambda functions. ["Read more" for Kroc's personal commentary]
Thread beginning with comment 340912
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: PHP5 is object oriented
by Kroc on Sat 20th Dec 2008 23:35 UTC in reply to "PHP5 is object oriented"
Kroc
Member since:
2005-11-10

I write exclusively v5 for PHP. A language cannot be properly object-orientated if the base objects are themselves not objects. String, Array &c. are not object-orientated and any commands involving them are entirely procedural. Using libraries to dance around this doesn't change what PHP inherently is—a procedural language with objects tacked on.

I do understand what you’re saying, but having coded a lot of VB6, Javascript and PHP I know the limitations of hybrid languages.

Reply Parent Score: 7

RE[2]: PHP5 is object oriented
by tyrione on Sat 20th Dec 2008 23:40 in reply to "RE: PHP5 is object oriented"
tyrione Member since:
2005-11-21

I write exclusively v5 for PHP. A language cannot be properly object-orientated if the base objects are themselves not objects. String, Array &c. are not object-orientated and any commands involving them are entirely procedural. Using libraries to dance around this doesn't change what PHP inherently is—a procedural language with objects tacked on.

I do understand what you’re saying, but having coded a lot of VB6, Javascript and PHP I know the limitations of hybrid languages.


Don't know why you're getting marked down, other than the fact those marking you down don't know a damn thing about OOA/OOD, let alone OO Programming.

Reply Parent Score: 1

Bill Shooter of Bul Member since:
2006-07-14

We can argue semantics until the cows come home, care to elaborate on the limitations of the hybrid languages?

For my $.02, I'd prefer if they went to a perl6 style type system where you can declare an int as an int, so you could have an array element take less than 50 bytes. Rather than have int be an object.

Reply Parent Score: 0