Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88089 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98024 invoked from network); 7 Sep 2015 11:46:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2015 11:46:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@tutteli.ch; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@tutteli.ch; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tutteli.ch designates 80.74.154.78 as permitted sender) X-PHP-List-Original-Sender: php@tutteli.ch X-Host-Fingerprint: 80.74.154.78 ns73.kreativmedia.ch Linux 2.6 Received: from [80.74.154.78] ([80.74.154.78:32783] helo=ns73.kreativmedia.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/F8-40368-FF87DE55 for ; Mon, 07 Sep 2015 07:46:07 -0400 Received: from RoLaptop (cm135-167.liwest.at [81.10.135.167]) by ns73.kreativmedia.ch (Postfix) with ESMTPSA id E855FDCE8080; Mon, 7 Sep 2015 13:46:02 +0200 (CEST) To: "'Nikita Nefedov'" , References: <009001d0e949$aa28a820$fe79f860$@tutteli.ch> In-Reply-To: Date: Mon, 7 Sep 2015 13:45:58 +0200 Message-ID: <00b801d0e962$c3af8070$4b0e8150$@tutteli.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJT+SKZjn/QfyFxy61XN6DkUvkrFQDfXzD4AqBQpiidDtTBoA== Content-Language: de-ch Subject: AW: AW: [PHP-DEV] [RFC] [Discussion] Short Closures From: php@tutteli.ch ("Robert Stoll") > > I would like to see a short syntax for closures in PHP but would > > suggest to use different symbols for the operator. Why not use --> ? > > >=20 > --> is a shift-reduce conflict. It's undecidable if this expression > --> should > return boolean or a closure: > `$foo-->$bar` (is it `$foo --> $bar` or `$foo-- > $bar`) >=20 > -- You're right, I forgot about the post decrement operator. What about = -=3D> ? would look like a little rocket ^^ but well, it does not really = look better than ~>