Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80351 invoked from network); 8 Jun 2010 10:23:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jun 2010 10:23:20 -0000 Authentication-Results: pb1.pair.com header.from=jacob@oettinger.dk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jacob@oettinger.dk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oettinger.dk from 209.85.161.42 cause and error) X-PHP-List-Original-Sender: jacob@oettinger.dk X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:48792] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/20-13782-71A1E0C4 for ; Tue, 08 Jun 2010 06:23:20 -0400 Received: by fxm5 with SMTP id 5so634696fxm.29 for ; Tue, 08 Jun 2010 03:23:15 -0700 (PDT) Received: by 10.102.14.17 with SMTP id 17mr5397776mun.46.1275992595438; Tue, 08 Jun 2010 03:23:15 -0700 (PDT) Received: from [10.0.1.6] (1307ds1-noe.0.fullrate.dk [90.184.9.39]) by mx.google.com with ESMTPS id 23sm7228366mun.31.2010.06.08.03.23.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Jun 2010 03:23:14 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Tue, 8 Jun 2010 12:23:11 +0200 Cc: internals Content-Transfer-Encoding: quoted-printable Message-ID: <2C70277E-0442-49B8-AD0B-E9F12ED7B42C@oettinger.dk> References: To: Felipe Pena X-Mailer: Apple Mail (2.1078) Subject: Re: [PHP-DEV] [RFC] Array Dereferencing From: jacob@oettinger.dk (Jacob Oettinger) Hi This is great. Would it be equally simple to allow the syntax below? $result =3D new ResultMaker()->getIt(); and $resultOfFunc =3D returnsFunc()(); I think would add consistency because it would allow direct operations = on any returned value. I agree that it is not the most reader friendly = code. Jacob On 07/06/2010, at 18.58, Felipe Pena wrote: > Hi all, > I just edited the RFC page [1] about array dereferencing as now we = have a > patch for such. >=20 > RFC page: http://wiki.php.net/rfc/functionarraydereferencing >=20 > The patch is simple, it just required to change the grammar file. I = also > added some tests in the patch. >=20 > Any objection? Thought? Improvements? >=20 > Thanks. >=20 > --=20 > Regards, > Felipe Pena