Re: PHP global namespace clogged up

From: Tim Tyler (tim_at_tt1lock.org)
Date: 09/03/04


Date: Fri, 3 Sep 2004 06:38:16 GMT

Chris Hope <blackhole@electrictoolbox.com> wrote or quoted:
> Tim Tyler wrote:

> 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.

My proposal (in the first post of this thread) described what would be
needed to clean things up without breaking legacy systems:

``To clean up the existing mess, many new functions need to
  be created as member function of the appropriate objects -
  and most of the old functions in the global namespace need
  deprecating.''

Deprecating functions doesn't break anything - since all the old
functions are still there and they still work just as before - the
only difference is that they generate deprecation warnings if you
set a flag when parsing the page.

This doesn't clean things up immediately - but it does allow a
clean-up to be performed in the future.

IMO, if a clean-up is attemped it is most likely to initially take
the form of third party libraries - intended for "real progammers",
who are not happy with the existing situation - and want a decent
set of library routines for PHP.

-- 
__________
 |im |yler  http://timtyler.org/  tim@tt1lock.org  Remove lock to reply.


Relevant Pages

  • Re: Terminal application compatibility
    ... > compatibility doesn't seem to be OS X biggest strength. ... requiring slavish backward compatibility leads ... macos9 and earlier to be dead, dead, dead. ... apple would have been in better shape if it had been done five years ...
    (comp.sys.mac.programmer.help)
  • Re: trim(string) vs string.trim
    ... Please note before leaving your code in place that the Trim function ... is implemented in the Microsoft.VisualBasic namespace for backward ... It's best to just conform and avoid the backward ... The day I stop using the VisualBasic Namespace (excluding the .Compatibility) is the ...
    (microsoft.public.dotnet.languages.vb)
  • Re: net 3 replaces net 1?
    ... official message from Microsoft. ... in fact upwards compatibility.. ... old bugs was concerned in. ... in my eyes that say that they cannot be resolved because of backward ...
    (microsoft.public.dotnet.general)
  • Re: Unicode in Delphi/VCL (yet again)
    ... Backward compatibility cost us so much money over the years. ... we intend to produce a Unicode VCL. ... > I think D7 should be shipped from now on with all future Delphi SKUs. ...
    (borland.public.delphi.non-technical)
  • Re: OfficeXP/2003 to Office2K compatibility
    ... Jonathan and Oren - I have had MAJOR problems with backwards code ... >> I need to know whether I'm gonna run into any compatibility problems ...
    (microsoft.public.word.vba.general)