Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61459 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24110 invoked from network); 19 Jul 2012 07:25:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2012 07:25:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:54780] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/54-22428-F56B7005 for ; Thu, 19 Jul 2012 03:25:20 -0400 Received: by yenl12 with SMTP id l12so2815508yen.29 for ; Thu, 19 Jul 2012 00:25:17 -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=zcGqAiz4FywLvRYPv0yihr/pwra2F8NHmMFDtw/KfC0=; b=KfNgKFqleQm21Z+81Zgx81IemfTWVg0GTguP/ca8jrp++VbCLaK9HjOTiNatjOFu/p b0pgp+S/jmFLOLyyQ5IxBiAkmf/6xOynxfejGNU+LYa/GeK/xKThTvKT2uSHyhlzHPIr 0f8R4N6skxZCTZ6HqL5m5w6BCWCMPvXgTd2NcJrft92Rc32UJtUXpvFjSxy4CMHTnAVd 8YxEXzImEegfu78gMYZe+6q/VzrlouroUwvbS7IntJauj/jZIEioFPc+bPK+/sJkCVhH ri6R2Kgmvwi876a6GbD7wRaAvVr26AfhjNW/qw7ypsESOJ4XKONbJkONDHko1/YQnrYO z3IQ== MIME-Version: 1.0 Received: by 10.42.155.73 with SMTP id t9mr352214icw.48.1342682716592; Thu, 19 Jul 2012 00:25:16 -0700 (PDT) Received: by 10.231.134.9 with HTTP; Thu, 19 Jul 2012 00:25:16 -0700 (PDT) In-Reply-To: <50070538.10206@lerdorf.com> References: <50059AF8.5050805@sugarcrm.com> <5005CB58.2020601@sugarcrm.com> <50066724.6050901@sugarcrm.com> <50070538.10206@lerdorf.com> Date: Thu, 19 Jul 2012 09:25:16 +0200 Message-ID: To: Rasmus Lerdorf Cc: Stas Malyshev , internals 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 Rasmus, On Wed, Jul 18, 2012 at 8:49 PM, Rasmus Lerdorf wrote: > This makes no sense to me either. How does it let us clean the APIs? Can > you give an example? I have one: > > $a = -5; > $b = "-5"; > > echo $a->abs(); // Outputs 5 > echo $b->abs(); // should still output 5 > > What has been cleaned here over: > > echo abs($a); > echo abs($b); Heh, here is another example where it makes even less sense: time(); sigh. More seriously... we are not talking about these APIs and I am sure you know which one I refer to, like the string API and the like. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org