Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61426 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43346 invoked from network); 18 Jul 2012 18:44:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2012 18:44:19 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gg0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:44196] helo=mail-gg0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 79/26-39169-10407005 for ; Wed, 18 Jul 2012 14:44:18 -0400 Received: by ggnf2 with SMTP id f2so2199955ggn.29 for ; Wed, 18 Jul 2012 11:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=SeYH3dbZZqBq6FWfUeO6q+jDRWDi781srnngAxdQTh4=; b=l5EfG7vm/PP/dDYTOoXuJzKGv8ZyERVmKusE8MdfRi9SEqX64Fs4UmIg3s4/lJnmhR +CcieHouft1yZ9uAqJM/KtFutEk9lOcInBR22P8S/ZEM928QYXA7ZP80tiiurL5zwU0e pxIavuGuqzGe5zsd4AEKORr04844kdc/F98LW7CobkvTraJTWjfLthZv1ZzKlmXJi/Qs L5LjorMy8XJE45m9JF0QkcXZe7KKNMM/oj06d6JOJbyWj2oarMT4Lhbsb2Uqb2sePqGS R6wBaXcJx3C+qxC8b+7iqCTqodfAtxNJMzNX3SLl14//zgjkm+0EASB3pZRlMX9v2Azc YeZw== MIME-Version: 1.0 Received: by 10.60.26.65 with SMTP id j1mr2995748oeg.9.1342637055282; Wed, 18 Jul 2012 11:44:15 -0700 (PDT) Received: by 10.182.10.106 with HTTP; Wed, 18 Jul 2012 11:44:15 -0700 (PDT) In-Reply-To: References: <50059AF8.5050805@sugarcrm.com> <5005CB58.2020601@sugarcrm.com> <50066724.6050901@sugarcrm.com> <50067040.3090307@sugarcrm.com> <5006E5BB.50906@sugarcrm.com> <5006EA43.608@sugarcrm.com> Date: Wed, 18 Jul 2012 20:44:15 +0200 Message-ID: To: Ferenc Kovacs Cc: Stas Malyshev , internals , Andrew Faulds Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Pseudo-objects (methods on arrays, strings, etc.) From: pierre.php@gmail.com (Pierre Joye) hi, On Wed, Jul 18, 2012 at 7:50 PM, Ferenc Kovacs 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