Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104708 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 16649 invoked from network); 14 Mar 2019 09:26:43 -0000 Received: from unknown (HELO mail-wr1-f49.google.com) (209.85.221.49) by pb1.pair.com with SMTP; 14 Mar 2019 09:26:43 -0000 Received: by mail-wr1-f49.google.com with SMTP id n9so375768wrr.9 for ; Wed, 13 Mar 2019 23:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=JNW9zSJNEm5nTXvUoFmiF6VdhrwhAtO10FqXuYLauUY=; b=ro/TZd9IFyY3JtVHI4P8vEiCyHAwUDUGuAH2F4SPCmTtnU6NuCMHLvAiyrHFhNPM/w BOfhTL5MxgNElJJvrPDwzUsW6XaZk78Z4BdEQno7ZNLKllJ+lE12hc+xh0iC/H/5jvZ5 CB5ycVyFvpM3t+hbLHfWOfLNpLGufeXyT6KT+WaUr3gSLmyUKDHp6KsmzGr2Mp5NxMsT NHUHEkhp5xpJXVp4dGl0O2Z3T5/qPZlFlGphUI2Hr2y62iwvyuMsGzy4/RD3pyhuywzX 1lK2cs0K37dHWemXKg9XBZiKNBgfta5gqQvg+W9jo2X+tHkQHNjDb51DYeZUly8/LI9F 83Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=JNW9zSJNEm5nTXvUoFmiF6VdhrwhAtO10FqXuYLauUY=; b=RVFQ7OkrgxCcBfiK8NwLf0I5+I7qypXZWnKocHWPFPmLVYmAmE5hJ8upBbLzez/HtS CNrNsDY7AE3plAbkCG3OLqN5srVOKWnhJdPIuBWHoS6lXPR39gKna6Ic6PtdSSDsAJ/6 xjE5cer3bcE9bHf3wcuGZITSwbZFpJz+yx3pSfrM6+bHFeLKeFwAJGBj9jEVeK2o5hrO ZDupvdBQ0N+Bi0miqEUuppe1ph9stcE2RywdXlcFiM2HG6lMUF/ZsXwxVwybjY9n8KX4 ACUFQaE+Gohqy1Omgg2xkc1ClD9B/TvQ9YwH9LZqR91F7BbYAkt/PlZrmgSRXM7KmkMn SxsQ== X-Gm-Message-State: APjAAAUWY+mTtiP0Gu49GT/hTdSnrJSCgwBr8Rh3NWvHAqyFLs9wDZP1 IaQZ5V+uRunaj0AA5Ug6y5nHqDco X-Google-Smtp-Source: APXvYqzoHpbxo/R6/0GL2OdzCcgd4W7LgnqCnUR+k91AdfO8Vi67Apm/cZCOXMHD2F66gwcB2RExUg== X-Received: by 2002:adf:fc87:: with SMTP id g7mr29320338wrr.136.1552544221570; Wed, 13 Mar 2019 23:17:01 -0700 (PDT) Received: from [192.168.0.12] (cpc84253-brig22-2-0-cust114.3-3.cable.virginm.net. [81.108.141.115]) by smtp.gmail.com with ESMTPSA id s5sm36936272wra.77.2019.03.13.23.17.00 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Mar 2019 23:17:00 -0700 (PDT) Date: Thu, 14 Mar 2019 06:16:59 +0000 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net Message-ID: <46ECA6BB-03DE-4047-A464-6C5F697CAE73@gmail.com> Subject: Re: [PHP-DEV] [RFC] Arrow functions / short closures From: rowan.collins@gmail.com (Rowan Collins) On 14 March 2019 04:01:54 GMT+00:00, David Rodrigues wrote: >1=2E Your example with "($x) =3D> $x" consider the use of "$x =3D> $x", b= ut >not >specifically "($x) =3D> $x"=2E I mean: maybe it can accept "($x) =3D> $x"= but >not >"$x =3D> $x" because of the array conflict (as mentioned), and with that >we >avoid to create a new keyword "fn"=2E So parentheses is required=2E I don't think this helps, because you can put brackets around any expressi= on, for precedence, and any expression can appear on the left of an array l= iteral: $foo =3D [ ($bar + 1) * 2 =3D> $baz ]; So the following, while redundant, is currently valid: $foo =3D [ ($bar) =3D> $baz ]; Regards, --=20 Rowan Collins [IMSoP]