View Single Post
Old 11-24-2012, 01:31 PM   PM User | #5
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,890
Thanks: 5
Thanked 79 Times in 78 Posts
firepages will become famous soon enough
Quote:
Originally Posted by Custard7A View Post
Can PHP even hold a candle to the OO in languages like Java?
Probably not, but whilst Java is loading the object hierarchy for wax to overload the candle PHP has pulled 20 of then from the DB lit then and stuck them in a chandelier in the pattern of your choice

For years its been noted that PHP OO does not have, this that or the other... overloading, abstracts, interfaces all jump to mind, we have those now , namespaces etc + the old multiple inheritance question which no one can agree on in any language

Fou-Lou can I am sure give more specifics about what is missing in the PHP implementation vs other languages, he has a far broader knowledge than most here.

But whilst PHP allows loose/weak typing then its probably not going to be considered capable of being a 'true' OO language.
Though Wikipedia says this...
Quote:
Originally Posted by http://en.wikipedia.org/wiki/Object-based_language
Object-based languages that do not support inheritance or subtyping are usually not considered to be true object-oriented languages
So it depends on the definition of 'true' OO , PHP passes the above test?
__________________
resistance is...

MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
firepages is offline   Reply With Quote