Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98078 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97474 invoked from network); 31 Jan 2017 12:46:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2017 12:46:11 -0000 Authentication-Results: pb1.pair.com header.from=nicolas.grekas@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nicolas.grekas@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.180 as permitted sender) X-PHP-List-Original-Sender: nicolas.grekas@gmail.com X-Host-Fingerprint: 209.85.223.180 mail-io0-f180.google.com Received: from [209.85.223.180] ([209.85.223.180:34720] helo=mail-io0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/55-51557-21780985 for ; Tue, 31 Jan 2017 07:46:10 -0500 Received: by mail-io0-f180.google.com with SMTP id l66so130506801ioi.1 for ; Tue, 31 Jan 2017 04:46:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=C4JseG9D2R+DVzm7Qaohu1xrRNgNC0966JiIVYHW+f4=; b=F2r59/W7OXqrWoR6LXSZZxhzsg3TV5OIUtYauuPw5z+MxlEa4i6Dme17U4gNNnkNxR wNa+a1UC3bnIwZQaj+o2NhNc5u2SLjqm6LpKOXUEWwUx1wq82hXeTs0nzTuS1L4NMqcO nKVh+rIdLcSs6/kcCs9lXJIBU1xwltTVUYwaVT+PhrD75qH59PJBiv8HNUtHLAwFwuEu 84aU31lyovPRxDOPmAferobTVRV4crGiINWfLa6sYIsTxhEWKtF8eInpEB0b8XYbw2Qx Al/sso51kg66mg3/kg5PuS7EZYffdyvjwYtKpIoBiCS6ZNp2yYhPmMSw38iyHiNnwiTO wVeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=C4JseG9D2R+DVzm7Qaohu1xrRNgNC0966JiIVYHW+f4=; b=MrmtqOsqL5GhjikKsO8wfPSf9AD9kSXuTdGvyJPmbuXxwno5mkbVWJuA0Y3XbTb5/P EzBygqHlLM5Oym6ymsUQX1yYuQ1yiLgepb3ryeUxPGcZBrZbHlKd+rCs3yo6vO+mDVMe PRKHpy+375TPw+iIHjY7gJA71hS6Cvspx6cBB0vfvuDfoWp8qUaXBUVSN/NMEz1n54Fl byKvSm5SV0rJXBJYlgycJtvfqY+gBzs4LXr7cSur6V4+u+iU5fCYxVfbNiNOZi5ieNGc Rs37cwAPZJfO3aCJRlZTv4XvE7R6TcmLfq4/TQUagS5J7Qtv3nr0Mod9GJZGd/YhOMNK dFVA== X-Gm-Message-State: AIkVDXLDSVU8pLemUKnkWZXnMRyAqzObfwiGbBqI2WQJvURet11rY9fGM2niOI3VLh+8aL6USau0WJfZ+cIAMQ== X-Received: by 10.107.1.149 with SMTP id 143mr18899319iob.179.1485866767254; Tue, 31 Jan 2017 04:46:07 -0800 (PST) MIME-Version: 1.0 Sender: nicolas.grekas@gmail.com Received: by 10.107.130.38 with HTTP; Tue, 31 Jan 2017 04:45:46 -0800 (PST) In-Reply-To: References: <20170131122056.GA14569@phcomp.co.uk> Date: Tue, 31 Jan 2017 13:45:46 +0100 X-Google-Sender-Auth: RkX44H_WyBhnJBGoZyGWK8ij9pA Message-ID: To: Niklas Keller Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a1139c680d88a9b05476350d7 Subject: Re: [PHP-DEV] [RFC][Discuss] Arrow Functions From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --001a1139c680d88a9b05476350d7 Content-Type: text/plain; charset=UTF-8 > > As noted in the RFC, this isn't possible due to ambiguities with array > keys and yield expressions with keys. > There are not ambiguities technically, so it is possible if we want to: $a = [ $y => 'b', ($x) => $x + 1, // key, value pair ]; $a = [ $y => 'b', (($x) => $x + 1), // closure ]; --001a1139c680d88a9b05476350d7--