Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61342 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17353 invoked from network); 17 Jul 2012 10:24:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2012 10:24:33 -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:35997] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/B3-28715-F5D35005 for ; Tue, 17 Jul 2012 06:24:32 -0400 Received: by yenl12 with SMTP id l12so213254yen.29 for ; Tue, 17 Jul 2012 03:24:29 -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=R8W6tzZtzDioZnoeniIM586kIc+DlFfX2MTe5aw22FM=; b=fotZXoAyKTKeSEJyAyYQM9pRpBw4hR0kgpBG0QE45MaXd58EzlJ8qy6ZxmYiJaEjt/ FCxnxKIwTFCauhrQmyaW1Gdv9xjUnfJhhaCLkTPTuiEysnrpNgRVblt5zl5PWyv6KnVj 2cowLXuwyM51E4CWxZ7O1KPAKsnDaygHvH683sxzxTO9b/hoLExSrmvMq1g42gGNSrVt xsZF7yqpgEPcsvE1wEZBpZR8WLd2lOUlPRvQVOwcduSuqmm2gVNt4zc8LXvc3DsRzQmm y2LhYceU8d3nMM244AHOB69pyRkBIX2atH2iqDHIexpMOalhtBvr5KqoH/W/pIFi0Hi/ q0hA== MIME-Version: 1.0 Received: by 10.50.171.41 with SMTP id ar9mr810493igc.56.1342520669421; Tue, 17 Jul 2012 03:24:29 -0700 (PDT) Received: by 10.231.205.211 with HTTP; Tue, 17 Jul 2012 03:24:29 -0700 (PDT) In-Reply-To: <9df59951c29cafc8937404409fb9fe70@nebm.ist.utl.pt> References: <9df59951c29cafc8937404409fb9fe70@nebm.ist.utl.pt> Date: Tue, 17 Jul 2012 12:24:29 +0200 Message-ID: To: Gustavo Lopes Cc: 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 Gustavo, On Tue, Jul 17, 2012 at 12:21 PM, Gustavo Lopes wrote: > There isn't a difference in terms of making PHP more object oriented, which > was the main advantage advanced by the OP. I'm all for redesigning > strings/arrays APIs (presented as an afterthought by the OP), but for that > the discussion should be centered on what those APIs will look like, not the > syntax one uses to call them. To provide pseudo objects is a damned good point and long due. Please don't focus on a badly formulated initial post (more object oriented), we are not in a CS course but in the PHP internals discussions list :). > In fact, quite frequently, syntax discussions make more important design > decisions be ignored (see namespaces). Syntax easiness and APIs cleanness are what make a language attractive. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org