Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46817 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90345 invoked from network); 19 Jan 2010 17:43:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2010 17:43:07 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:53447] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/3C-29385-A2FE55B4 for ; Tue, 19 Jan 2010 12:43:06 -0500 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id A9F144144057; Tue, 19 Jan 2010 17:43:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HAbVTzMtwwNH; Tue, 19 Jan 2010 18:43:13 +0100 (CET) Received: from [192.168.0.151] (217-162-131-234.dclient.hispeed.ch [217.162.131.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id 8EF384144009; Tue, 19 Jan 2010 18:43:11 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii In-Reply-To: <4B55EE56.8040104@lerdorf.com> Date: Tue, 19 Jan 2010 18:42:57 +0100 Cc: Stanislav Malyshev , 'PHP Internals' Content-Transfer-Encoding: 7bit Message-ID: <0592FCBA-6097-42AF-AF23-8FD8EC7A3E94@pooteeweet.org> References: <4B54FC87.8070106@zend.com> <4B55EE56.8040104@lerdorf.com> To: Rasmus Lerdorf X-Mailer: Apple Mail (2.1077) Subject: Re: [PHP-DEV] function call chaining From: mls@pooteeweet.org (Lukas Kahwe Smith) On 19.01.2010, at 18:39, Rasmus Lerdorf wrote: > I don't mind the foo()() syntax, especially now that we have closures. > But people are right, we have a longstanding feature request for > $foo()[0] as well, so if we start down this path of adding chaining, we > should do that one as well and see if any others make sense. > > I do think the syntax is a bit ugly, but I also think it is clear what > it does and doesn't obscure/mislead the semantics of the call the way > the (new foo)->bar() suggestion does. +1 regards, Lukas Kahwe Smith mls@pooteeweet.org