Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129942 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 408901A00BC for ; Tue, 27 Jan 2026 12:45:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769517925; bh=D7Z2Kprxf5hhvrpQuVd0XeG9YiJRdTRSMQ1s4y5nn7Y=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ZcljjlSpWN7sepwdhU57pOh662uX8vvAxx81pTcQDxlYN4kqx43TaqOSxVYjXSlQ7 BtXt7AYuC+6BfSd9bmUJ6nf8x/CAEBD7OpiZSkKYT00ZrErCH2BO2egG1sYJm86zD6 jIYPSG9HORNxULOu25aF6wcdqDAVcYaoA2hPok3eH7JKLuyX/JvmftwjFTtmUD8W4k Cl+Dp0TUi7uzXivYsU+vcp2jgiIPGpbcf0BaiXMQtrPTr8EQ3XjYzFG3RuhAMaD7DY LTkx1aqk+468Dj1+VQhnyRmFFxxV37Ai5VJQYM+TZCcUO1gQd+43K7+tUse0fis0UN glUVDhPGA2hxQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0916D180039 for ; Tue, 27 Jan 2026 12:45:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 27 Jan 2026 12:45:24 +0000 (UTC) Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-385c23b88e8so57312341fa.3 for ; Tue, 27 Jan 2026 04:45:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769517918; cv=none; d=google.com; s=arc-20240605; b=hJPQMe5YBN19SRp94LPEtFDUtSL9a64Gd58WpVQv36uf45G4CCy2MXVhxu+TUp/Pi4 2YOoMhFwTVCvcUa7iry5qaqp+6DKU8DJVuwWdFcr861lRKaIzrbY9BxXlU4njmaw2voL 2PKfC5ZZgn1l7Nj2+7FdW1q/bQuBegwJ47YhgYonbJizvy8fZ9sKePLPm7UwIRhFEIya tu4cjeVq5kKu9pTzk4/e6XUdrimWkXZ5sDw7z97mkGhMcTvr3Jl4ZxfS866SGexrB10H hsFuwoLAA9gncUpGz7PTEH5OEL/6QmZV3hAiikpMSoYw/ruRjCQcN5vFt0U/QcfZKR1C eD4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=D7Z2Kprxf5hhvrpQuVd0XeG9YiJRdTRSMQ1s4y5nn7Y=; fh=cH1YbWrWMJnZKzyQQQ7vsfoba+WtITnYp/9t2Ep/xIw=; b=IZI87RNXqfbUlDgqm+Dv62ny7aWJimcRrESZDgqQYQlaOz9XA/pmNAIBA/xyQjpcYx KNyLbUYcmXZ2o9/3sxRGzlB2vavobrNsBxqHjOpV9zm8TQYZEGO3/OtdCTaX0yY7Q4iR uOfvrEXiPhcBu4Tk2ofH3lkuZUKsOKxwGuTDN7MAaVLzQC+wZUAsRweyPMOSOdJka8pk 4KQFtwlvyABiKnhs3qstYtT+om9QbsHwDhtrkE8/5ep5riGKduA4VyVASBXfrNLMr+h2 eO2NL9q1YNVn/W3BMvbESZjS8De2s37feg+yf1QRm4tE7KggEeMnEnyESn7Ey35+Vk1C DX/A==; darn=lists.php.net ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769517918; x=1770122718; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=D7Z2Kprxf5hhvrpQuVd0XeG9YiJRdTRSMQ1s4y5nn7Y=; b=Dt9wVwuvF+i6iBBc/oZb/9YHhO3md8el8UhNyG+dB00AZmOOBvGfEg7XoQT1x7Gm/Z mDNvdIzqx6Wgxuc+DggHAE2ZIqp5DUzZ/J6FUaL+F9PUMYa2WJ4k2QrMUEo3GLKJan9W uO/ZuTvDsrIFg83L0+SkqzV0kd0uomc42HqT3yFUQ0vDDMMjDFRw9XaraLncabGUjFkk WG3qnZtkdpCclUnHUGhr6FH6GF5it4LfFw+1c55FKArj1LAHbB9DP/ORGKKoL1VVXJNP j2ChhC3pDLQgY0za0Pr0suyhx+vzqTEyiO8ELIMNy1NlhUdwLDWyWkfCIeycS+q2B+h6 wpwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769517918; x=1770122718; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=D7Z2Kprxf5hhvrpQuVd0XeG9YiJRdTRSMQ1s4y5nn7Y=; b=C8bSQroYxzLHvWRbISEvRNnVxuO20QSDkCm6xUGIMIwZSzG6s9MjNLAUAgLVkq7SBW 3L7/F07NZQGtGwvNnJxFag2tTkysro2cS+1K8l6ppcRQZtkZa/TurGpzUq9t1+BEYz+W Vnnq5kjDBCZPkg+/Wlr/b4hK6ykzlrFTSrRw7I19D4rGcCabNOaD1HVYCcJLVJTS4DHy QLfEPhjSuGgO3J+UGQq97zpzsk12gaa+uXI73DCKCChr8boP+c7bznbi+YgILsc6bhPd DaE28D4vM1g+5nairIKrvnYoGPPNOD0Phq/WzosgV1YoVQEQ/JDf1LuqVtu+xm0OLvRG 6WZw== X-Gm-Message-State: AOJu0YzhwuueM7d8xzgVlpOtAMlnMiBMrFHxSal0m20gBnpU3guCt/Mh J/RVA5ss+iLnt16NXbqPQuUlDm/xkS45iHwjftC620+ehj4P/UfnJ4GOgX4u2kq54tGqm5jw43F 6b2aD0UzfLy3DWoawljazrjcPTZ8qi+0= X-Gm-Gg: AZuq6aKPQ9Oxm1kzLqa5MOnGLzFAIgvbslFkIsQkmEK9f3LWKghGHTYX/vuQNYSB3X2 CwWgbVwmk7Cvq0dnHXt2kdjd/QKD/WyZhRD2Ji64dQOzGnKMlpcFQS/sBBJCFWqbJpd5iHAcg8C txLd4gJGw8iAE5b2DjWiZV6zlscFhEs5E8VU5AnNZvfM3fMj4O2xIj1M9FEwnOTl9KHmwVjo1cN l+uMH1OB/8/x/o5PAheq+FsKw6Qo9nWWs4XseHYKs7iV0f4PMB9Teo/11WFTjSwC23b2UUa9qM/ tF3+90ZBh25y5Y1oeEB3583Ns4mST1VGyunexkqEb0j/xFgeTfZ7Ah6QmiTVbwxZgGEQSunBhVX bLufJoZ8jZgL7IA== X-Received: by 2002:a05:651c:4cb:b0:37b:926d:5bf3 with SMTP id 38308e7fff4ca-3861c81f313mr7054201fa.6.1769517917672; Tue, 27 Jan 2026 04:45:17 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 27 Jan 2026 13:45:06 +0100 X-Gm-Features: AZwV_QjNQ33Cju6uKyp4A2cjPL_NrBTc1EtUbxvSi-Q5vTERumSC2ABYs7ZA2z8 Message-ID: Subject: Re: [PHP-DEV] [VOTE] let construct (Block Scoping) To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: php internals , Seifeddine Gmati Content-Type: multipart/alternative; boundary="000000000000e8195406495dfe0c" From: ocramius@gmail.com (Marco Pivetta) --000000000000e8195406495dfe0c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey Tim, I went for "abstain". I'm a proponent of functional programming paradigms, and I frequently touch Haskell / Nix, which have `let ... in ...` and `... where ...` , which are nice. I feel like cluttering the PHP language for something that is already (in my own opinion) resolved by IIFEs (and inlining/optimization thereof) is not necessary. I don't mind if the feature makes it into the language, but I feel like it just complicates the AST further, for very marginal gains. Greets, Marco Pivetta https://mastodon.social/@ocramius https://ocramius.github.io/ On Thu, 22 Jan 2026 at 10:17, Tim D=C3=BCsterhus wrote: > Hi > > we just opened the vote on the =E2=80=9Clet construct (Block Scoping)=E2= =80=9D RFC > (which was originally proposed as =E2=80=9Cuse construct=E2=80=9D, but th= e keyword > changed as a result of the discussion). > > Please find the following resources: > > - RFC: https://wiki.php.net/rfc/optin_block_scoping > - Official Discussion Thread: > https://news-web.php.net/php.internals/129059 > - Related Discussion Thread: > https://news-web.php.net/php.internals/129251 > > There is one primary vote to cast on the RFC. Voting will run for 2 > weeks until 2026-02-05 09:30 UTC. > > Best regards > Tim D=C3=BCsterhus > --000000000000e8195406495dfe0c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey Tim,

I went for "ab= stain".

I'm a proponent of functional pro= gramming paradigms, and I frequently touch Haskell / Nix, which have `let .= .. in ...` and `... where ...` , which are nice.

I= feel like cluttering the PHP language for something that is already (in my= own opinion) resolved by IIFEs (and inlining/optimization thereof) is not = necessary.

I don't mind if the feature makes i= t into the language, but I feel like it just complicates the AST further, f= or very marginal gains.

Greets,

On Th= u, 22 Jan 2026 at 10:17, Tim D=C3=BCsterhus <tim@bastelstu.be> wrote:
Hi

we just opened the vote on the =E2=80=9Clet construct (Block Scoping)=E2=80= =9D RFC
(which was originally proposed as =E2=80=9Cuse construct=E2=80=9D, but the = keyword
changed as a result of the discussion).

Please find the following resources:

- RFC: https://wiki.php.net/rfc/optin_block_scoping<= br> - Official Discussion Thread:
https://news-web.php.net/php.internals/129059
- Related Discussion Thread:
https://news-web.php.net/php.internals/129251

There is one primary vote to cast on the RFC. Voting will run for 2
weeks until 2026-02-05 09:30 UTC.

Best regards
Tim D=C3=BCsterhus
--000000000000e8195406495dfe0c--