Re: PHP global namespace clogged up
From: Chris Hope (blackhole_at_electrictoolbox.com)
Date: 09/03/04
- Next message: Daniel Tryba: "Re: PHP memory management"
- Previous message: Chris Hope: "Re: PHP debugging"
- In reply to: Tim Tyler: "Re: PHP global namespace clogged up"
- Next in thread: Tim Tyler: "Re: PHP global namespace clogged up"
- Reply: Tim Tyler: "Re: PHP global namespace clogged up"
- Reply: JZ: "Re: PHP global namespace clogged up"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 03 Sep 2004 13:13:01 +1200
Tim Tyler wrote:
> I like PHP - but I do wish it wasn't full of such godawful embarassing
> hacks.
You do know that they rewrote the object model in PHP5, don't you? While
this doesn't address the issue of namespaces (which I wish they'd added) or
the unfortunate problem where there is little standardisation of function
naming or order of parameters, it does show that they have addressed some
of the issues with OOP.
The main problem with trying to fix PHP in respect to the issues you have
pointed out in your many posts, is that they need to maintain backward
compatibility. OK, so maybe they don't, but it makes it very hard to move
developers/hosting providers/etc onto a Brand New Version of PHP which
isn't backward compatible, even though it might address all the issues
brought about because of the way PHP has evolved. It'll take long enough
for everyone to move to v5, let alone to a new version which throws all the
existing function names and syntax out the window, and breaks all existing
legacy systems.
I like PHP because it is both procedural and object oriented. I like that it
gives me this flexibility and use a combination of both in my projects. It
would have been nice if there *were* namespaces, but I have no problem
prefixing my functions with eg foo_ to ensure they don't clash with other
function names.
-- Chris Hope - The Electric Toolbox - http://www.electrictoolbox.com/
- Next message: Daniel Tryba: "Re: PHP memory management"
- Previous message: Chris Hope: "Re: PHP debugging"
- In reply to: Tim Tyler: "Re: PHP global namespace clogged up"
- Next in thread: Tim Tyler: "Re: PHP global namespace clogged up"
- Reply: Tim Tyler: "Re: PHP global namespace clogged up"
- Reply: JZ: "Re: PHP global namespace clogged up"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|