On Nov 12, 2003, at 4:02 PM, Dan Anderson wrote:


On Wed, 2003-11-12 at 15:57, George Schlossnagle wrote:
On Nov 12, 2003, at 3:53 PM, Dan Anderson wrote:

It's actually kind of interesting. If you look at what PHP is trying to do with PHP 5 it is basically trying to copy a lot of Perl's object oriented system.

That's really far from the truth. You could accuse it of trying to copy Java's oo model if you wanted.

I don't know. I see many more similarities between Perl and PHP then PHP and Java.

Sure, in the procedural syntax they are very similar, but not in the new object model. The new object model is very java-ish. It's certainly not very perlish at all.


PHP5 supports PPP, Perl doesn't. Perl supports multiple inheritance, PHP5 doesn't. PHP has formalized interfaces and abstract classes as langauge constructs, Perl doesn't. PHP has attribute accessor overloading as part of the standard class interface, Perl doesn't (that I know of, discounting using Tie).

The internal implementations and external syntaxes look completely different as well.

The guiding model for many of the features has been the Java OO model. None of the PHP OO folks particularly dig Perl's OO (and that is being generous).

George


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to