Re: Object oriented??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2004-11-07 at 01:37, Larry E.Ullman wrote:
> >> Yes of course...but was confused since some says it is so and some 
> >> says it
> >> is not...So thought of asking the pros..
> >
> > It is. PHP4 had limited support for OOP, though it was quite usable.
> > PHP5 goes further and provides pretty much everything else. See the
> > documentation on php.net for the complete language reference.
> 
> I guess this is where the OP's confusion stemmed from (Robert said Yes, 
> I said No)! A liberal definition of OO is "An adjective applied to any 
> system or language that supports the use of objects", under which PHP 
> would qualify. But, in strict OO languages, everything must be done 
> using objects. You can't even do a simple "Hello, World" without them 
> (I could be wrong on this, of course). With that understanding PHP 
> would not be OO.
> 
> So, in short, PHP __supports__ objects but does not __require__ them.

For a language to be object oriented it does not need to be purist like
java. But then in counter to your argument, java primitive datatypes
such as int or bool are not themselves objects, which is in contrast to
the design of Smalltalk. At any rate, few would argue that C++ is not OO
and yet you can write a C++ program without using any objects. I think
it is sufficient to say that a language is OO if it supports the OO
paradigm, not if it enforces it.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux