Once you start down that route, where will it end? When PHP's object model
is 100% compatible with Java and C++ (which is obviously impossible given
the differences between the two)? Or perhaps it should be made compatible
with Ruby or SmallTalk, so experienced Ruby and SmallTalk programmers will
have a more pleasant PHP experience?

One the main reasons for PHP's popularity is that it is easy for the
newcomers. Sure, there are many advanced and experienced developers using
PHP, but I'm assuming that they aren't in the majority.

As for this specific patch, BC is the main concern. Then again, with all of
the changes to the object model, maybe this would be a good time to
implement the change, as BC is going to be broken anyway, but it should be
for a better reason than appeasing C++ and Java programmers.

J


Per Lundberg wrote:

> On Fri, 2003-04-04 at 19:06, J Smith wrote:
>> It's been said before, but PHP isn't C++ or Java, so why would they have
>> to be compatible?
> 
> Because it will make it easier for C++ or Java programmers to find PHP a
> pleasant experience.
> 
> I think much of the discussion of where PHP should go is a bit
> misleading, actually.  Zeev and Andi (and others probably) believe it is
> important to keep PHP being easy to learn by newcomers.  Yes, of course,
> I agree to that.  Still, I do not come from this kind of background (PHP
> was my 8th programming language -- Basic, x86 assembly, Pascal, C, C++,
> Perl and Java in that order) and I really think it is an unwise idea to
> only focus on being able to learn for people with little or no
> programming experience.  It is equally important, in my eyes, to make it
> convenient for people with a different background, such as mine.  It
> will make PHP more attractive for advanced programmers.
> 
> Regarding this specific patch, I think it is a very very good idea since
> it removes one of the very "weird" features of PHP OO, where I think it
> is really far too relaxed.  This is one of the big weaknesses of Perl I
> think (ultra-relaxed OO).  Of course, the PHP OO in ZendEngine2 is
> greatly improved, but still, things like this can make experienced OO
> programmers with C++ or Java background just shudder and say "it's a
> toy".  I don't think that's good.
> 
> --
> Best regards,
> 
> Per Lundberg / Capio ApS
> Phone: +46-18-4186040
> Fax: +46-18-4186049
> Web: http://www.nobolt.com


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to