Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113788 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 50211 invoked from network); 25 Mar 2021 17:15:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Mar 2021 17:15:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8F03E1805A8 for ; Thu, 25 Mar 2021 10:11:55 -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_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-vk1-f182.google.com (mail-vk1-f182.google.com [209.85.221.182]) (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 10:11:55 -0700 (PDT) Received: by mail-vk1-f182.google.com with SMTP id o4so561269vka.12 for ; Thu, 25 Mar 2021 10:11:54 -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=uIlhrLyoN3wAz7WhciDdAraGWdj6PM68SVN9UFQdNb0=; b=mfoBEwHQXXeplCAuOhvsvsqrjYqbDQ053paI/+bU42DVFnSwofjGU4wSFBq5FHi8F5 Z11WCYDZb47mIRpnKe924vHSX5qugSnlrJd2n09/Zo0m3CRnipi4rJ2ibtAxCgEND7qY KvPlhPVrfFJIqwEi2nSt6Ih4RgHBTfN94k8b1S+S0C8K4xPvaVGTH0jfavMkdHOymldq menjWmHHt/WXr6KIZ3MOC5NBvD/yYO4IymcMu7bE+DKKYfUvUSdTuyy5MONzroXGIZQo WDRcrqxHIds/h1zrrkKS/idFuJ5erVVdL8ErEGkyTnAbCwaTDG/ObRnWpQeJkn3SFNC8 PPUA== 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=uIlhrLyoN3wAz7WhciDdAraGWdj6PM68SVN9UFQdNb0=; b=Q2zCCZifNQjLwoiD9VrB3YmSJOPJhoZbE6eRj5U2U5CjtFgA4XBJ9R48OwEZUCSUg/ 8lxGsW3DCMJ6B/RnmmBTlUzS1v4Pj4C2WYuhRPh9gZXVl/RV/79IfBRDpeeQc/PRAl/z WrBe7IO9QWicVSX4CDqk3FZ6/+hDbIEf0JO9dk6AM5Vh3bQ3dknY96WiYTbaEhwPy1vd afFbXOFMAUtYpC9NdCA1SrCeWQ2VICGDDj5+UvwqC/DNpDfbHc+pg786wthgxpkYizq1 lA+WQVD167f9wzVPivfwK6iZf7qc79UAmXu80TH7K3Iqettn9rVooeGgUsiAS9cIKKzi qqCw== X-Gm-Message-State: AOAM530Phrbsqx88r1vb86/6ttBeOpfJF4j1f0+zl7SXdkKzqh/CXT/T 5R/dAYuI416Y9A2BqyTGYD1Jv97IOo1hl+pKrhw= X-Google-Smtp-Source: ABdhPJwHo1uP5Q7IfcFQQCPyLvxSjBl6FF5LDnqnMw51IYf00OM2X9SCpEiW30D6zjwAyQR7BlAExkeYzlS1xtQVkgU= X-Received: by 2002:a1f:a8ce:: with SMTP id r197mr5855969vke.16.1616692310981; Thu, 25 Mar 2021 10:11:50 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: Date: Thu, 25 Mar 2021 13:11:39 -0400 Message-ID: To: Rowan Tommins Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000e8534b05be5f82d4" Subject: Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and shortfunctions take 2 From: chasepeeler@gmail.com (Chase Peeler) --000000000000e8534b05be5f82d4 Content-Type: text/plain; charset="UTF-8" On Thu, Mar 25, 2021 at 12:47 PM Rowan Tommins wrote: > 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. > > I don't think you should keep a function from developers because some people might use it incorrectly. Make sure it is documented properly and stop worrying about people that ignore the documentation. > Regards, > > -- > Rowan Tommins > [IMSoP] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > -- Chase Peeler chasepeeler@gmail.com --000000000000e8534b05be5f82d4--