Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61418 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26224 invoked from network); 18 Jul 2012 16:56:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2012 16:56:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajfweb@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajfweb@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.212.182 as permitted sender) X-PHP-List-Original-Sender: ajfweb@googlemail.com X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:61825] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/A2-39169-5DAE6005 for ; Wed, 18 Jul 2012 12:56:53 -0400 Received: by wibhq12 with SMTP id hq12so1325126wib.11 for ; Wed, 18 Jul 2012 09:56:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=I9ggCD8txvap0Ip3ln6HLtFyYFJGAFjm4dXvwPL3uyA=; b=t6m56+uqZv3ciLtXWANJQyLltyf/ujQdg5Gox+i+Elg/H26/PEQ+hajk7DDNZReCmS y32YZqFBRpG5rSkCVb6icKs2KrNWSXGmQTCMfEc5vHyE1nIh3uPh5HIfOcASOjaCQD1p EPgmlwl9UoHj0sNkp/FFwacgjXKlhVh6QbPNtV+He6ITDjLgEujxtoYHEpqeaz3+AyE2 9FvnBOqosj9+YU2IY1628BEAEPGRaJSDejkmxjPG8MbqHbryDGySAV9r3CO4QkJNaJGB Ye3rmiGIliIg9QrTmPG+m5QImMixK0PJlKu272Iq8dwGA4jXzsLZlymj0syOrrZwRaxh MF/g== MIME-Version: 1.0 Received: by 10.180.91.228 with SMTP id ch4mr8299417wib.7.1342630610579; Wed, 18 Jul 2012 09:56:50 -0700 (PDT) Received: by 10.216.160.16 with HTTP; Wed, 18 Jul 2012 09:56:50 -0700 (PDT) Received: by 10.216.160.16 with HTTP; Wed, 18 Jul 2012 09:56:50 -0700 (PDT) In-Reply-To: <5006EA43.608@sugarcrm.com> 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 17:56:50 +0100 Message-ID: To: Stas Malyshev Cc: Pierre Joye , internals Content-Type: multipart/alternative; boundary=f46d043c7fa29bb13904c51d8ce3 Subject: Re: [PHP-DEV] Pseudo-objects (methods on arrays, strings, etc.) From: ajfweb@googlemail.com (Andrew Faulds) --f46d043c7fa29bb13904c51d8ce3 Content-Type: text/plain; charset=UTF-8 Obviously. This is simply the means to provide the new API without breaking BC. If people think this is acceptable then sure, let's plan an API. On Jul 18, 2012 5:54 PM, "Stas Malyshev" wrote: > Hi! > > > Er, sorry, accidental capslock. This IS a new API. That was an example. > > I'm not saying just put -> everywhere, I'm saying we can keep array_* > > and add a new set of -> functions which are well-designed, consistent, > etc. > > What "this"? So far I didn't see any single message discussing anything > about any API. All I see is discussing how we should have -> syntax > working on arrays and strings. IMO this is exactly the wrong place to > start, if your goal is to improve the API (if your goal is to have > "sexy" syntax, it's fine but then I do not see this goal as worthy). The > right place to start would be the API. > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > --f46d043c7fa29bb13904c51d8ce3--