Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112267 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 92603 invoked from network); 20 Nov 2020 19:55:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Nov 2020 19:55:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B4910180537 for ; Fri, 20 Nov 2020 11:19:45 -0800 (PST) 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-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) (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 ; Fri, 20 Nov 2020 11:19:45 -0800 (PST) Received: by mail-ot1-f42.google.com with SMTP id z16so9745923otq.6 for ; Fri, 20 Nov 2020 11:19:45 -0800 (PST) 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; bh=5oHleS4blkiauEtOJQr5P3B8bkPGiajr1ioOc++QpCo=; b=OO2ai6EmctWpHPJ10M5paq0FGWltj7JFAP4Tg8R/5HI64wCIBYInAsE7sFOiv5dVDC oGYPTXr+RnvWSjnkogNDqMw3mASPCgPi5Bhn4TFSq+1HT1LgNygYxUfaFTTfgMhEdUCJ 3GsCvIjk1hFET2gsERkRKCmRJoWPvcHcEPbsUbknvs8AoTQv8spwTCaI74hQJw0/KXcC SHdd0e8esHSYzuX2xMvb9B+y31LtcTTvvcBmPA0srx4cguQgKe2FzXFVMnl9G4hjMGBD crhgm1HRPurs+GmfFio59NXcN3A85DJ7ZMYKX6IlAEEvCSf02B2+Ho0YluuJe0aJvD4S Ce7Q== 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; bh=5oHleS4blkiauEtOJQr5P3B8bkPGiajr1ioOc++QpCo=; b=pO0YiBW1qzgYq9o29HlGQpuIHLs1Vzh8FzFrDagi/EQf6Sf8Jx4qKAUV22nMd1GS3a 0kTDWUIcf80ifgk1T051KhZGp23f5DLZvZNOi8cKrnPUrleMcZ+pcUHxU/g/LJClWlKi e0hmUI9YaH0Flcc81Kpq12CrzsRXpGw2QcPVVBSjowR1tuKhAZMFDrWLSjCDASQqX33R vw0ay/IfZgkqQn6erkvyZR16/7qK6/CyItm8FCyil2Vc1ljF8arpNJvmfvJq/eWswaVY HBFkLsdFcWFdS4oLcJxYTEG52E3azlK5yQPJJyMg4nCxXHalZfc6lxoR8J7aukawjs+1 9XYg== X-Gm-Message-State: AOAM530VBOK5Ktt7NVnvPaRG8erJftseKWxNogpLFENagpPSY0ms4you e8zEnYlgAHaklEWA8GzuIiz1N2tv/ARx+MrWyBMqhz1S+w+DyA== X-Google-Smtp-Source: ABdhPJwKVOHrARXVCRvnBKbcQKWtRx9UMCIzDS27V4Rz5TgZY8KqfdtAhRipGJ/6UD5UjOcCPROyvKd6Sacd4mDlW3Y= X-Received: by 2002:a05:6830:2093:: with SMTP id y19mr14808015otq.219.1605899984258; Fri, 20 Nov 2020 11:19:44 -0800 (PST) MIME-Version: 1.0 References: <55e200cf-ed16-e935-4e09-728ce3362cba@gmx.de> In-Reply-To: Date: Fri, 20 Nov 2020 16:19:31 -0300 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000001b4b0c05b48ebaeb" Subject: Re: [PHP-DEV] [RFC] Draft - Closure self reference From: david.proweb@gmail.com (David Rodrigues) --0000000000001b4b0c05b48ebaeb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > No we can't, try it (Parse error). The correct order is > "function() use($x): Type". Oh! You are right! In this case, we still have the old idea: function() as $lambda use ($x): int {} > Ugh. That's ugly. I want to say we should fix it, but the horse has left the stables, so it's too late to enforce the right (to me) ordering. Yeah, but is there any way to go back now? :/ Atenciosamente, David Rodrigues Em sex., 20 de nov. de 2020 =C3=A0s 16:08, Sara Golemon escreveu: > On Fri, Nov 20, 2020 at 12:58 PM Guilliam Xavier < > guilliam.xavier@gmail.com> wrote: > >> > I don't know if that would be a problem, because today we can have it >> > "function(): Type use($x)", so "Type use($x)"? >> > >> >> No we can't, try it (Parse error). The correct order is >> "function() use($x): Type". >> >> > Ugh. That's ugly. I want to say we should fix it, but the horse has left > the stables, so it's too late to enforce the right (to me) ordering. > > -Sara > --0000000000001b4b0c05b48ebaeb--