Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61379 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97520 invoked from network); 17 Jul 2012 20:16:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2012 20:16:40 -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.213.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:47357] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/58-54353-628C5005 for ; Tue, 17 Jul 2012 16:16:39 -0400 Received: by yhoo21 with SMTP id o21so972611yho.29 for ; Tue, 17 Jul 2012 13:16:36 -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=QJh7calsyvMd+FrT4g+ZNNslxaj2ylnv4z3HA2HgdeY=; b=QUtXs3oZ3cX5a5qddAdBlxga8Gs6lWRNps9WLpHxEmD4NvuWFuCdC2/jJfNLwhNnzq SA7B/4FEyh8KePRbBSO0QoP9XJXO6QnTJUq5ZSJTKoXOy+4M46TbSMP25YFba+RMeN4f KXOz5LchZyRmd6vCjb4ng+HKGWLNxQwOnNcWnxbPxhDwn+42a5HT7HkIlAeLWu2tMSi2 wO4Q84Y/oPO41WBjWhlHeduOAqWNH1FVqWsGLiyf55sFJp9W6H7j/dTFRu/XIX5jd+Ao ACXrSltXzGsbzjwJ5lDsWlq0V349lzhQlFzpJ8e178/nH/Q6XrRd4ptJGoik6RAk1YSR n3bQ== MIME-Version: 1.0 Received: by 10.50.192.170 with SMTP id hh10mr20056igc.36.1342556195525; Tue, 17 Jul 2012 13:16:35 -0700 (PDT) Received: by 10.231.205.211 with HTTP; Tue, 17 Jul 2012 13:16:35 -0700 (PDT) In-Reply-To: <50059AF8.5050805@sugarcrm.com> References: <50059AF8.5050805@sugarcrm.com> Date: Tue, 17 Jul 2012 22:16:35 +0200 Message-ID: To: Stas Malyshev Cc: Gustavo Lopes , 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 Tue, Jul 17, 2012 at 7:03 PM, Stas Malyshev wrote: > I disagree - I do not think we need pseudo-objects. If the only point of > the exercise is to convert a call of array_pop to $array->pop, it's not > worth it. It'd just make the language more messy - you wouldn't know > what -> means anymore. pseudo object for the reasons Rasmus mentioned in his previous post. Having pure object would be not efficient enough and brings its lot of caveats. Also it is important to keep in mind that this idea does not apply only to array but to other types as well. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org