Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120535 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 57732 invoked from network); 6 Jun 2023 14:26:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jun 2023 14:26:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C109D1804F5 for ; Tue, 6 Jun 2023 07:26:39 -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=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,MISSING_HEADERS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 6 Jun 2023 07:26:36 -0700 (PDT) Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-626149fbc8eso61160186d6.3 for ; Tue, 06 Jun 2023 07:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686061595; x=1688653595; h=content-transfer-encoding:cc:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QfApvOw3z+ppf1VWgcFIraiPA2BrACcc8j36oYTDwNo=; b=W26ScBVN1B568lXtTrYs8YPqHr8NrrSDq8F1CdIGV4IBnUKNS/VkGE6oOAzeQWIFtP SXHo5kwqZsIE6WhvtZGm1ImWBcNUxZ5HtwM4unxAyFszKYBoSLgAAPl9eiuRXH0OcLK2 nan4NHM9VKsKn0eYN6x+drYXvI8toBpIzUIHP99WZhLgtC1uu/7tZEaJM/NmJ1644i/K 4/bLbYaZqTgXulON0nUq/Szr5qnDEtH6xLXlHvPfO14DezniiATcNdMixsa0fubsixMn ext46XBxXPBB/BCs7timFmBltjERFlnY2L+XRn9V7bjfWwxe+r2aACPY0NnptCX6x92x X+uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686061595; x=1688653595; h=content-transfer-encoding:cc:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QfApvOw3z+ppf1VWgcFIraiPA2BrACcc8j36oYTDwNo=; b=FNfgiFcBqEzv05LvNns/nFqAmB6yRdUqSA5RJx/MKiyT61Xag3OWlBBamk+o4Hsys7 gDF7f2MznEAouZwWtSpop7iwjBBq9D+3gFbTET49IIY+Itokh1Y93Uf0Og5keuwmwiih 63QJuejlD80UL7biJDt5uRmhKjhjf7h8Cz/xhvg4KWVpk5aiLLhREU0tPtIzAmwQggZG 4UUHkVMXVoDiW7b7J/AcIn/H7JQOis9LJUum13q3Gb+3uzjJTnV6xR4BYa1sOlcFIcBW O7f8xRrrVRZVaFe7muhIWfjDoBPFfXzzgKcY0/bevQwTAaVlzUAhfb+B3FSZSA0CKqgP Ozkw== X-Gm-Message-State: AC+VfDychupt0q6n9SPyqtqmAkRa3Y5oOmasgld1/NIUIQpkqH4NczkC IrUTP8FjRIRQyymhhp+c9hPOCKi7DmEqHKP/Lg7B+CH9Sgw= X-Google-Smtp-Source: ACHHUZ5h3erR3eOedHRnzgG/8mLK20hEhxI0J/khepJO/oOFb0HvhFb1LPPehaJCzeUmefHcOeY77QG9l1tOx16NbaI= X-Received: by 2002:a05:6214:3016:b0:626:38cc:648d with SMTP id ke22-20020a056214301600b0062638cc648dmr2471901qvb.40.1686061595022; Tue, 06 Jun 2023 07:26:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 6 Jun 2023 16:26:08 +0200 Message-ID: Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC [Discussion]: Closure self-reference From: weirdan@gmail.com (Bruce Weirdan) On Sat, Jun 3, 2023 at 9:11=E2=80=AFPM Dan Ackroyd = wrote: > I'm now opening the discussion for the Closure self-reference RFC: > https://wiki.php.net/rfc/closure_self_reference Looking at the syntax options on the RFC page, the following explanation is not clear to me: > * De-anonymize the function. This has a large aesthetic downside of appea= ring to create the closure variable in the scope that the closure is declar= ed in, rather than internal to the closure scope. Does this mean that the variable wouldn't actually be created in the enclosing scope, but someone may *think* it would? --=20 Best regards, Bruce Weirdan mailto:weirdan@gmai= l.com