Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104717 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 63827 invoked from network); 14 Mar 2019 18:48:15 -0000 Received: from unknown (HELO mail-io1-f51.google.com) (209.85.166.51) by pb1.pair.com with SMTP; 14 Mar 2019 18:48:15 -0000 Received: by mail-io1-f51.google.com with SMTP id k21so5435113ior.13 for ; Thu, 14 Mar 2019 08:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fxb8GBJI8AP3MEXc07ubsKXedxP6hFB1TqqZ5xgjRqg=; b=IOVW6klKMeQezOyrtM+PkkzZQEKEJ1vFaNCMXHvxkzUo+Ajf1OH8L8ShFka6Fpy1cK MjN7QtPhjXB3IipXGMbrHY6xLSlaVMIjSEMu1qwSdy7iXAFdr3QIMHW9DuIsGV17ZX+U nPLj5LAhe714vCChBPU58RggbLvm5bF6m4g+1emMykKaDQmDLD6QYuE98x6OEbDD5gZU IxgClSYKbplYCdSdJrGsFo4I0tfZcykbHF1IoIGEtoTYh2bJkVgH47b2kiRWxJMi84gw RJOKY3Mqszt2FFZvXFsECUex5eO/yF7HuQiw+lzkqa/JQrGax0xOCgpvROzdte01WVRn ejPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fxb8GBJI8AP3MEXc07ubsKXedxP6hFB1TqqZ5xgjRqg=; b=RdLXKQNFzVzwEgGT3nWXcwew6bGkKCy0aDqLNF1YUMMKgrlZ1obJcFM2wKpUUD6eE+ 0pUlROgDXNqntuK62VvPNl5XxkearloWj/ETcGM63EMYqrrynaUKwLHRMzkBWfjvVaEi db1v51SWaAa3POVnomn4ojogm5wHaSpA15Ya6tzqBwo9vLZU9nSglNt/2MFZhTl9pjF5 2S/l2ON0TkNh12jxeVh6QAUCv9W5dQxdw0roshB1SYTiXztFo51FTVW0gpS46Z62Nc9P qKpXw6l+M9duk5oEfvxSaeAwM21RB3E64nkKYD/apiP2rjERY3OE6Gyw5DUNdjRu/PcT pV4Q== X-Gm-Message-State: APjAAAXuQ/WN609O9UNMxNGrJ8pXYJ8+JaGrbY+6CoDzkmOeRj8+xX0D 5xGrpRjqNRQ1An7ggZYdNxfgrWNTZ88fT9eSBf0= X-Google-Smtp-Source: APXvYqwnpNW0LdTDf4Dzl4Bdwq2M1GXmnungB84Hbva1fdtC3E/DgLt/hhOg32Gh22oGPQB6pBiN1yPItTsOvFxXM08= X-Received: by 2002:a5d:9157:: with SMTP id y23mr26964335ioq.129.1552577919571; Thu, 14 Mar 2019 08:38:39 -0700 (PDT) MIME-Version: 1.0 References: <46ECA6BB-03DE-4047-A464-6C5F697CAE73@gmail.com> In-Reply-To: <46ECA6BB-03DE-4047-A464-6C5F697CAE73@gmail.com> Date: Thu, 14 Mar 2019 12:38:28 -0300 Message-ID: To: Rowan Collins Cc: PHP Internals Content-Type: multipart/alternative; boundary="00000000000061dc5605840fb79f" Subject: Re: [PHP-DEV] [RFC] Arrow functions / short closures From: david.proweb@gmail.com (David Rodrigues) --00000000000061dc5605840fb79f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Em qui, 14 de mar de 2019 =C3=A0s 03:17, Rowan Collins escreveu: > I don't think this helps, because you can put brackets around any > expression, for precedence, and any expression can appear on the left of = an > array literal: > > $foo =3D [ ($bar + 1) * 2 =3D> $baz ]; > > So the following, while redundant, is currently valid: > > $foo =3D [ ($bar) =3D> $baz ]; > Yeah, I don't think in that case. And maybe using [] instead of ()? For instance: "[$x] =3D> $x + 1". PHP don't supports and array as key, so maybe it will not causes any conflict. --=20 David Rodrigues --00000000000061dc5605840fb79f--