Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56699 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70928 invoked from network); 1 Dec 2011 05:45:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2011 05:45:04 -0000 Authentication-Results: pb1.pair.com header.from=irker@irker.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=irker@irker.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain irker.net from 209.85.215.170 cause and error) X-PHP-List-Original-Sender: irker@irker.net X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:35547] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/C1-56905-F5417DE4 for ; Thu, 01 Dec 2011 00:45:04 -0500 Received: by eaak13 with SMTP id k13so1764084eaa.29 for ; Wed, 30 Nov 2011 21:45:00 -0800 (PST) Received: by 10.213.22.20 with SMTP id l20mr882325ebb.24.1322718300333; Wed, 30 Nov 2011 21:45:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.106.16 with HTTP; Wed, 30 Nov 2011 21:44:39 -0800 (PST) In-Reply-To: References: <4ED6713D.2050009@ralphschindler.com> Date: Thu, 1 Dec 2011 09:44:39 +0400 Message-ID: To: Nikita Popov Cc: internals Content-Type: multipart/alternative; boundary=0015174bea406de6b104b3015ad8 Subject: Re: [PHP-DEV] 5.4's New De-referencing plus assignment From: irker@irker.net (=?UTF-8?B?0JDQu9C10LrRgdCw0L3QtNGAINCc0L7RgdC60LDQu9GR0LI=?=) --0015174bea406de6b104b3015ad8 Content-Type: text/plain; charset=UTF-8 2011/11/30 Nikita Popov > If we really want this kind of (expr)-> syntax, then it should really > accept *any* expr. But I am not quite sure whether this will work out > easily because in this case we can't be sue that expr is an object > (but maybe it'll be simple, I just don't know). > Same as now worked: func()->something; or $a = 123; $a->makeMagic(); If $a or result of func not objects its throw error. To all: I think we can adding (expr)->methodOrNot , (expr)[expr] , (expr)(params) and it combinations: (expr)[expr](params)->method etc. Is it good or bad user chooses himself. Maybe will be something like JQueryPHP :D I think the only thing that can in principle prevent us - slowdown PHP. With regards, Alexander Moskaliov Irker@irker.net --0015174bea406de6b104b3015ad8--