[RFC][Discussion] use construct (Block Scoping)

From: Date: Mon, 03 Nov 2025 21:46:15 +0000
Subject: [RFC][Discussion] use construct (Block Scoping)
Groups: php.internals 
Request: Send a blank email to internals+get-129059@lists.php.net to get a copy of this message
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.


Thread (42 messages)

« previous php.internals (#129059) next »