Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113783 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 40626 invoked from network); 25 Mar 2021 16:51:49 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Mar 2021 16:51:49 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BEB1C18059B for ; Thu, 25 Mar 2021 09:47:52 -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,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 ; Thu, 25 Mar 2021 09:47:52 -0700 (PDT) Received: by mail-ed1-f48.google.com with SMTP id bf3so3181832edb.6 for ; Thu, 25 Mar 2021 09:47:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=v65I3yn3qWzQZpWUf8tJFtClNdK5kPb1Le/FPz8lE7Q=; b=KRDudIpPFqEljKnM/5duA7PZjIZG5Q7wzbX0MBJrI+rA8BIGQYJF9faFgASOvg/zxR I07GWUAY7LLRIZc8RpRf23bG1jzFEJztxQ7N1bC6ESIam2bKt2v7otyBty/2r3pCVFwZ yXaUhhRdBGmHoTscEBdBqiRSMobttxhbjfLlHy4xMjfcziuZHmqqJqOIaDwqkqGNftTQ T6VhpaLHS200bMLC1bOizPGoIECrzOt3kJQbjGOFeIUJMJt7O5y4EEgiwksukqeMNeWt zETJY8i2/mh/8Vo6ugYIHrsW1FXjVrCJdTMSk7L8qPDScFjuR6cSV1Qa8baUJOT8AZCz ++Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=v65I3yn3qWzQZpWUf8tJFtClNdK5kPb1Le/FPz8lE7Q=; b=Hh9pimIYdapEd0igT5yPrpcxYY9invOeEm7aoOKid7zcNi6AwNw0+85A3PhtkN5JeT skd+t4HhFDRzSLjP85bv+EwWGlRASfyFQMX8qVfNMfUsS6RJpfrRdF++h3Gct9Z6KYbu Q+yPEBCLDbhr2cL4GwLLhye8AMWHLwDBw4zxcXMu4i4c4PUTyVgrFZbVhh0gLJp9n44c uLrGdnScut5Vv1+ZhhM9S7+Re4F7MzeFNWoQwZTnZGFlDdZ34VhzuYWMUNrBqd0+T8QM rtg0PDrAB+ly33d8Tc+7fVJNoZcBBwALLkXn225B/Rig/jo31He2BTdwAG8M3JwYtO81 YVWw== X-Gm-Message-State: AOAM530lBnp8pQdU1E9ArwkbdnNB00s/CH8SzfHMYCvldIX88TCBYjZc siuylCzU2xW8SxUl03SWBA/F7xoe+KE= X-Google-Smtp-Source: ABdhPJzIa0kuTnls8ZXpyS/62MZEmd2OjMs2tRuzFn4oXMFMJAOIdYfZAf1/xUnOiMJf1EqmXImobQ== X-Received: by 2002:aa7:c857:: with SMTP id g23mr10199900edt.86.1616690870956; Thu, 25 Mar 2021 09:47:50 -0700 (PDT) Received: from [192.168.0.22] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.googlemail.com with ESMTPSA id z9sm3143512edr.75.2021.03.25.09.47.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Mar 2021 09:47:50 -0700 (PDT) To: PHP internals References: <88c9eb5f-f80c-4869-b7f8-1b58b9e2eaa3@www.fastmail.com> <4DC3B66E-A91A-4AA9-8872-8EE9DE92C2D4@cschneid.com> <8c72c162-83c0-7c7f-2fa7-4fbe3fb30a4a@gmail.com> <605bae82.1c69fb81.f49f7.d11eSMTPIN_ADDED_MISSING@mx.google.com> <919e30e7-3e5e-d955-7bb4-1e1b5825cdd1@gmail.com> <635DD146-FC6F-4991-8D2C-5A6B492722D5@newclarity.net> <734f12de-da98-6b76-c2fe-8682f4d177aa@gmail.com> Message-ID: Date: Thu, 25 Mar 2021 16:47:50 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and shortfunctions take 2 From: rowan.collins@gmail.com (Rowan Tommins) On 25/03/2021 15:05, Deleu wrote: > > * Because it's shorter, people will decide it's the "better" version, > > when they don't actually need any variable capture. An explicit syntax > > like "use(*)" instead makes this a deliberate choice. > > Does this mean you agree that people (PHP users) are very likely to > like/enjoy/"think it's the better version", but you still object to it > because people will like the new syntax so much that they will use it > even when they don't need auto-capture? No, it does not. I think that people who have no idea how either version of the syntax works will decide that the keyword "fn" is easier to type than "function", and not realise the far-reaching effect this can have on their code. Regards, -- Rowan Tommins [IMSoP]