Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46811 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78026 invoked from network); 19 Jan 2010 17:07:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2010 17:07:12 -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:60472] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/89-29385-EB6E55B4 for ; Tue, 19 Jan 2010 12:07:11 -0500 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 4C1AB414405A; Tue, 19 Jan 2010 17:07:18 +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 Pu7vZ9+-Gp6W; Tue, 19 Jan 2010 18:07:16 +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 558164144009; Tue, 19 Jan 2010 18:07:16 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Tue, 19 Jan 2010 18:07:03 +0100 Cc: Stanislav Malyshev , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <0932AFD3-59EF-4A69-BFBF-25C899B6369D@pooteeweet.org> References: <4B54FC87.8070106@zend.com> To: Chris Stockton 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:03, Chris Stockton wrote: > Hello, >=20 > On Mon, Jan 18, 2010 at 5:27 PM, Stanislav Malyshev = wrote: >> I wrote a small patch that enables this kind of syntax in PHP: >>=20 >> foo()(); >> ... >=20 > I think language enhancements with no BC breaks that offer a wider > toolset to programmers is a good thing. I would also like to see the > other ideas in this thread implemented such as array access & object > creation. enhancements in the sense that they enable things that were not possible = before, sure. syntax sugar that hurts readability, not really. if you are worried about key strokes switch to an IDE. if you are = worried about performance use a byte code cache. regards, Lukas Kahwe Smith mls@pooteeweet.org