Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99380 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33233 invoked from network); 5 Jun 2017 19:23:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2017 19:23:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=derokorian@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=derokorian@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.169 as permitted sender) X-PHP-List-Original-Sender: derokorian@gmail.com X-Host-Fingerprint: 74.125.82.169 mail-ot0-f169.google.com Received: from [74.125.82.169] ([74.125.82.169:32881] helo=mail-ot0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/17-27119-4BFA5395 for ; Mon, 05 Jun 2017 15:23:32 -0400 Received: by mail-ot0-f169.google.com with SMTP id k4so2212347otd.0 for ; Mon, 05 Jun 2017 12:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zDoiQvSqIvEbA9VbtOwzAMZUxPBm9Qz54SqF1KBTBCs=; b=FGYXyXH4NwRxhoG/VhDHD61hbPgYQQrbnHuCjy2/t2MpBV4dZVIof02im9EeTlO9Nb 1u0P43pd3nsgma3CHXCTe5z40h4EweFCACzx2mc3bNRdCT4/v7hLpup5MbEYLIT6Bkrg TjrO0g/h7CnthDfCAG0F2SAYsDZI9++kY+XYEoKNF3yCfoGuI5GWx3DGCFbsYFhaiyE7 xrbD9tpBk9+SFF4oHJsbqn4KFhUuGgtJVgVL6ME8yPQN5b7c+Hdm1rjStBsfpgiMpGss nJWZbY/BfQ1JQn+PDS86oCKtE1X1kwqJlJI6v5k0oY/M7/3TKFdfJxA8zq47luHRZyk7 02/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zDoiQvSqIvEbA9VbtOwzAMZUxPBm9Qz54SqF1KBTBCs=; b=mq1Dj5ebZ95GgSgGmu4qjliNhD/bya1Pbhubf1RnST4WWkI/85u9/aRhaeTkJR9En2 57Z52VmBN2nAHBrFm+8Zzj7fMaEGvvGswoTvW/yI5eHxGLg2gzKrGDbPfzW8fjPv9dko QYzRVE8VvHkldpOjOaXnWMyQWPCPd2+sZO6k0JZeu23wJVYBNqf95XKWEYBBkJ4e2cjj OCHUZvvzkmyOVMzwxdCHGC5LNe75U49kSPpuP8JT6vErd4RMn5HpxDpkAF4RT0cQQrgu uOntPhULX0wx8KmvvxdWmaiK6NYyXx/277udUFtCjJzH6ahPEVuH51al+3WBqyYmJ65Y /59g== X-Gm-Message-State: AODbwcA4wl0Fmv8z8OrQiEbHRVQI5qOAkZtfpelbOQgb+HA2qtOZtfps 31rx5tRXuuI+IW0df7xamIGBMnjtLw== X-Received: by 10.157.35.10 with SMTP id j10mr13550935otb.258.1496690610145; Mon, 05 Jun 2017 12:23:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.19.42 with HTTP; Mon, 5 Jun 2017 12:23:29 -0700 (PDT) In-Reply-To: References: <6357d97c-3f2e-4cf8-cb1f-cb7f7ccccf7c@telia.com> <7eaef49b-bf60-9aa1-e812-8430164e3178@garfieldtech.com> <3F920987-38CB-42DD-888D-824430C36F14@gmail.com> <2f9e73c9-444a-11d0-459a-e261ea8a7080@telia.com> <4077c099-2247-c3c1-7dee-02a6b25f8586@fleshgrinder.com> Date: Mon, 5 Jun 2017 13:23:29 -0600 Message-ID: To: Fleshgrinder Cc: php-internals Content-Type: multipart/alternative; boundary="001a11408014280e4e05513b709f" Subject: Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions From: derokorian@gmail.com (Ryan Pallas) --001a11408014280e4e05513b709f Content-Type: text/plain; charset="UTF-8" On Mon, Jun 5, 2017 at 1:09 PM, Fleshgrinder wrote: > On 6/5/2017 9:03 PM, Ryan Pallas wrote: > > However, ($obj) -> $var is valid variable property syntax. > > > > Gosh, we really have support for everything. :D That one is even very > important for stuff like `(new A)->f()`. > > How about ~> which I at least cannot think of any place it is used at > all. ~ in binary negation and the only place we use it (I checked the > language parser this time to make sure). > > I really dislike the ==> idea. One of the main reasons here is to write > less and it looks too much like => or even >= which I really don't like. > > ($a, $b) ==> $a >= $b > > ($a, $b) ~> $a >= $b > > I can get behind using the tilde. Keeps it concise, but it's visually different than existing syntax, making it easier to recognize (IMO). > -- > Richard "Fleshgrinder" Fussenegger > > --001a11408014280e4e05513b709f--