Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129059 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 2E0DE1A00BC for ; Mon, 3 Nov 2025 21:46:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1762206393; bh=gIAAp+Zr4YITJfX0EEkLhyV4bgUv3dIp5evs/xFIs/w=; h=From:Date:Subject:To:From; b=eqKyuj7BNMEjopEAzG262atLyZXRz86uzZmjrugLYCL/VmQ/FduEBFlRoma5uBfIu +x9wnjJKu90ZEtvxy4AHPs57p56mupQMuI/6O4y17fB8mHl0m7LDSXsyUy7Caao4zh blBmIB4DeqF0PwHuz0m2gLQ6ruOVPYUaULztHHvuLKM/t/on8XmdOGEs9EiePsWBhz UN7yw/qoabi5aZqluzNfJo1GKZGUflUFWNLFwbkyMyzuP96/Ba6WdvG+RISChnqD3i qR8RdcgKA6mRD/cKp7AeHcz15LUU29CmuVRwDe5R/OEY6gj9wiQ49nUFalk6zNWwNZ 2rxChBYtzYYUQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2330418006D for ; Mon, 3 Nov 2025 21:46:33 +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.0 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com [209.85.217.53]) (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 ; Mon, 3 Nov 2025 21:46:32 +0000 (UTC) Received: by mail-vs1-f53.google.com with SMTP id ada2fe7eead31-5dbcc814b80so1121798137.3 for ; Mon, 03 Nov 2025 13:46:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=carthage-software.20230601.gappssmtp.com; s=20230601; t=1762206387; x=1762811187; darn=lists.php.net; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=cQ+CFsGv+uZGcDqESVKs6hSQqyvW+5xPEaUJ6hTe8sg=; b=mHk6sPd0FPQW1AuA8rRvzBqLpvgRSKvLpIqI7QfBMF877Ilx1NUH81vOrpTe+yHndA o4Yly0WiH07pfWgo7F6wXH0bECgQkgI8JrerRDv1DB1A2WgdSrAVDAzF54CBfUxROQ+4 eufN5IL79V01APLU2IYmJ9hWqnyEq6iAX1BW8wgihY/v5xGnmlL6VY2vuSSTbFKyGpK6 9mN3en4BzUqa4nSc8XsUCyq6S5SmzNhqn1yZZd8f5dp3apJ1H5N7hp8Ab6F6m4FcDDaQ M8+j8BePRmk+QGpwTeP6f4d28e6OtIrdTGbQ1kP8ZyP0vbeLkNRTXtvFiA1SrkNneNek KlIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762206387; x=1762811187; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cQ+CFsGv+uZGcDqESVKs6hSQqyvW+5xPEaUJ6hTe8sg=; b=hyZ8X/GXWaBSRkQLjk4XUlXgW+WhBfwiBkXMgwFwelMzElyo8yE/xVLL6K3iNvwoyt OCHsHjoMBYXmFo1SaHJINWw4xGjxmOOiAPlf7Z1OKikXv7xHnLE4/Eq5H2ORvA5vvUIp /4jSJZiaUX0u6Qy04fTAy3muq0U+OsDX4vUzgx2HW/C/Q6UZwI86AVgJ52yoPCU+avjt fqUesIBcmG4cbU++GB5SjPwczuN96SZ1mVxmnEyIkzQrZWBmokdyk4Rv4Z2Tn59C5Sro tcBuL4vnvYRZv532RTgVFPEROINCOW4oGs5BoUeWyTgv/L9vua3VGC8aBoEluBj1+zBq 508A== X-Gm-Message-State: AOJu0YzGuuxvcnTUveVpETKvYAm8bdDDTkaXyYvPszCQyUIj8AFq37zx l4SXgmagFaYBjNBBhEkHvsR5Jdy1JMB6M2DBZ75WzOE8it3qBJ3G/VGoWJ5+ZO7eHpxybleTkhM OgYWdBl+UBs+w2zl1ag/a0CbadUu1Ik8+yyJwk90FnTBddv7W8bGhGlFxMA== X-Gm-Gg: ASbGncssKowf9IK4/jpm4LZ9bJjRbCylvD0GpPhBlpRE0xnrQMMrKY8lH4HiqTrH1yf I2PKmVgkg0dN6N0rnK9FzpyerUIQSx1IFvVcUDDkUt6j468R4bqawXk/kGgi8eHjRcgUZ6LFafL 1w1inlrN+1H1BQWosAlOdceNqccADl3CTSDdIQj1eUKTcybcPSEgKivj6lP5l0tixXxhqC8ENKT k6ztWjd3X6tbuZayIAByQtakJjwSK06MtF4zkrG3RmI34baw4fdrNvdbmr61pTEylM6kwI= X-Google-Smtp-Source: AGHT+IHUIGXhSk40nUSyJQ+QJWma8rvpxdqXBYQIqZjdihtswe4AIqLAcD4tUJuXbfPP+MyroIS8fXyDJtoVDlT85zg= X-Received: by 2002:a05:6102:3a08:b0:5db:d0ec:2236 with SMTP id ada2fe7eead31-5dbd0ec2356mr2056082137.11.1762206386996; Mon, 03 Nov 2025 13:46:26 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Mon, 3 Nov 2025 22:46:15 +0100 X-Gm-Features: AWmQ_bke8Fb9BmqC-LX2ErGNW5V7_XHa10VhKo3bdEHDGQclmVLzPE5ctoKBtrk Message-ID: Subject: [PHP-DEV] [RFC][Discussion] use construct (Block Scoping) To: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000b7d4f30642b7a5ea" From: azjezz@carthage.software (Seifeddine Gmati) --000000000000b7d4f30642b7a5ea Content-Type: text/plain; charset="UTF-8" Hello internals, Tim and I would like to open the discussion on our new RFC that we've been working on: "use construct (Block Scoping)". We wanted to raise a few initial points: - The RFC proposes the `use` keyword. What are your thoughts on a new ` using` keyword instead, similar to C# or Hack? - How do you feel about the questions raised in the "Open Issues" section? - What are your general thoughts on the RFC? Please find the following resources for your reference: - RFC: https://wiki.php.net/rfc/optin_block_scoping - POC: https://github.com/php/php-src/compare/master...TimWolla:php-src:block-scope Thanks, Seifeddine Gmati. --000000000000b7d4f30642b7a5ea Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello internals,

Tim and I would like to open the discussion on our new RFC that we&#= 39;ve been working on: "use construct (Block Scoping)".

We wanted to raise a few i= nitial points:

  • The RFC proposes the=C2=A0`use` keyword. What are your t= houghts on a new `using` keyword instead, similar to C# or Hac= k?

  • How d= o you feel about the questions raised in the "Open Issues" sectio= n?

  • What = are your general thoughts on the RFC?

Please find the following resources for your= reference:

Thanks,

Seifeddine Gmati.


--000000000000b7d4f30642b7a5ea--