Re: Pseudo-objects (methods on arrays, strings, etc.)

From: Date: Wed, 18 Jul 2012 18:44:15 +0000
Subject: Re: Pseudo-objects (methods on arrays, strings, etc.)
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
hi,

On Wed, Jul 18, 2012 at 7:50 PM, Ferenc Kovacs <[email protected]> wrote:

> Maybe we could introduce a new namespace for the new api instead of turning
> the new api oop only (or using objects for groupping static stateless
> functions into objects only to hint that they are working with the same
> variable types).
>
> Combining this with the previously mentioned lets turn namespaces to first
> class citizens and allowing exporting whole namespaces to the current scope
> would make it possible to make the new api available in the global scope if
> needed.
> Ofc this still would be a huge task to rethink/reshape our current api.

This falls almost exactly to what I would avoid to do, having same set
of functions but with new names or signatures, under a separate
namespace.

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org


Thread (66 messages)

« previous php.internals (#61426) next »