Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112265 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89015 invoked from network); 20 Nov 2020 19:33:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Nov 2020 19:33:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D175718053A for ; Fri, 20 Nov 2020 10:58:37 -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_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-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 10:58:34 -0800 (PST) Received: by mail-lj1-f179.google.com with SMTP id o24so11121844ljj.6 for ; Fri, 20 Nov 2020 10:58:34 -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 :cc; bh=O+de+IpANn4H0S21qTtLwmwhE+D0iJHR1erWBsm631s=; b=ByeQoh8Urtxg1eMZiDvM7ODPnZfRBBnjdyaaoh9Wth+1uhObHIgH40I8/h6OLMe7RT ttJRJvUt4r4piG6Be2ojthvMaAAJzFxNfXaedqfME9M+fx9OO5nKx19WjA1jPBfWOOiY 20ubws93JqOqSdlySEVtAbMaN4nVxjAvNBvuZc8UxHMt4l42r+ZHzyAdAgF5aRV4lU57 t+FnDPMd3zsjWszmCtds8o7vJQe5ePr9rfzFJ0FqQt8xTN9ouZYwG72fDrTJGiX+T+7m DtJshft5OvwR6QyzObiHCPDRcfe6amU9fzvICSbR4mgjqY7e+scp527du1zFKP1U0fv/ JsTQ== 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=O+de+IpANn4H0S21qTtLwmwhE+D0iJHR1erWBsm631s=; b=h2XFJnTJRDhtIw0skJU8cgsNxEIF31xnDjeFZrPCawlsMfD4QeUvPA4LmSDM/zdRS4 3L8v+igoATIyz7IYaYXFqaqDTiYxP5KPZQk0NXReu0zyifzvObYMLJXpMe4zp85Krqbd Z/dDcd1f40WrNi/XYYtQ/7dj+/lki/PppBytJm8cAnLPFF/UADuPDFvt4IBtJGiqnAW3 a0XpY0bmL8y/Y/J/kpqm5hTIt83sXPSqONHQg20dfeyjnPWf2SpfCJmiy5qdWfRF5ZL2 pQdyfbhJTHwjzixz1aUV5+pvcUMEVlo1V+Fry8NMLbcZKwMYK3xq+aVua56IGlljtCwj G27w== X-Gm-Message-State: AOAM530Z9mvEZYQk+RfjN/LrVmqC5og32Dc6jD8IeZeZoY4ajdeQBwGc dDHzWeXMDYWN4P/0T5LZW6q/yvAKEi7gPFXd8g== X-Google-Smtp-Source: ABdhPJydWrvn9LzRlRBLYmTyTd0z0An+0wRDEd7iHJgm7cGiUvL2BT7IdgHXoY6q4SkJ9Hre8g4lyudvmeBJOc2zSK0= X-Received: by 2002:a2e:7f13:: with SMTP id a19mr5284495ljd.70.1605898711052; Fri, 20 Nov 2020 10:58:31 -0800 (PST) MIME-Version: 1.0 References: <55e200cf-ed16-e935-4e09-728ce3362cba@gmx.de> In-Reply-To: Date: Fri, 20 Nov 2020 19:58:19 +0100 Message-ID: To: David Rodrigues Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000037bfdf05b48e6e9f" Subject: Re: [PHP-DEV] [RFC] Draft - Closure self reference From: guilliam.xavier@gmail.com (Guilliam Xavier) --00000000000037bfdf05b48e6e9f Content-Type: text/plain; charset="UTF-8" On Fri, Nov 20, 2020 at 5:02 PM David Rodrigues wrote: > > Is it `returnType as $thing` ? That doesn't read well, but I don't see > us making return type movable. as/use should be placable in either order, > but maybe we give them required order anyway? > > 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". -- Guilliam Xavier --00000000000037bfdf05b48e6e9f--