Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111993 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 12634 invoked from network); 3 Oct 2020 22:52:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Oct 2020 22:52:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E165018050A for ; Sat, 3 Oct 2020 15:05:28 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 3 Oct 2020 15:05:28 -0700 (PDT) Received: by mail-oo1-f51.google.com with SMTP id m25so1314722oou.0 for ; Sat, 03 Oct 2020 15:05:28 -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=5iuq+uq+w5QIXkM7kSKRaNUGFkSJQOV4GxxApjHJ2+Y=; b=uiGuMV5slM1Jq8oXn5FaWcIt6uDfZVDyUyFGDhOTXYr0EHtUQT2ILEkCuxrkklcSoU fZwneoQKoW1tC/Q/9PM6tVdV7OKd3tD9G9Nx+tLdwpPj8qkj5ZSTF7CbDF2dD7CDwOwg 0au3CbwZqWdq57eCCsQztyDU1NPNwV4W2tEKFi3qTiqTwimGZY9DpK3mB/365IguSiUb OCY6+kpRUfaqREqgqU6YuICDeBwxaogZbVTKDtAsuzbgONHPcTxvZYkP3QTCwnBftcDu 4hT9nR34jv+JKA37MDZ5Bd5BmftFcXtSqNbT2eXZda4WO1NFaquW1PIPsBDNvVhGwKO9 h4KQ== 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=5iuq+uq+w5QIXkM7kSKRaNUGFkSJQOV4GxxApjHJ2+Y=; b=NMii603AmRxelxFAy1C22i1Jbb0frzIq1kShi1DLtBloXkSMe8bSBsAwL3BQBkKs8v nbymjuNsIH4zDonOWlaZrK39RusdeVthSR2VntkjJq5Oq43m5YTcFZ2e3pWiyufiksPe A3TDCEj+GQl1Uc6Ncr1vDBwPOh8wcHLufSauol/zZRxzgIUjNsNFia4CHv+RpJY0Xlgs x6yDSEVPRpelKgNayS1z+B8oLGoy3u/XG8Kuf1TQnI+j4iejednhj8zbr6kaBW6evDPw EiycPxzyQ5Xr++aza++d4CY6scoeZhhjId9RE9buy8qW81bJeViKrZfusixiTmR6jVZ7 wjiQ== X-Gm-Message-State: AOAM532bedhYRfJ0SI/4qP8WdmYJb5exgrvpwEyjU5SJNP4NjrmYP8n/ VflnhvJCIcpL19CHlovHDZCrygii+rTrXZ4nciI= X-Google-Smtp-Source: ABdhPJzCUcgUptUsWg8Au5CpxfNdrGHgxA4biwj1cWdLKongjhtLpBMQCMjEZe1nuTCMe4sHrmXaEXG9xMOp1MFSIQw= X-Received: by 2002:a4a:d38c:: with SMTP id i12mr6866365oos.81.1601762724362; Sat, 03 Oct 2020 15:05:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 4 Oct 2020 00:05:13 +0200 Message-ID: To: Marco Pivetta Cc: Nuno Maduro , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000333def05b0cb72aa" Subject: Re: [PHP-DEV] RFC: Support for multi-line arrow functions From: benjamin.morel@gmail.com (Benjamin Morel) --000000000000333def05b0cb72aa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > If you want to make an RFC about it, it really needs a compelling "pros" > section, because there aren't any, so far :-\ I don't agree. There is one pro, and not a small one IMO if you use closures a lot: skip use(). Since arrow functions have been introduced, I've several times naturally tried to open braces, only to remember that it's not supported. I love fn() for the fact that it doesn't require the use() statement, and would love to see it extended to more than a simple expression. =E2=80=94 Benjamin --000000000000333def05b0cb72aa--