Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127440 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 509041A00BC for ; Sat, 24 May 2025 09:49:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748080049; bh=aw592SqnZaGoy+bj13KYvnVfOH65U4ia6Z+HEvKSH78=; h=Date:From:To:Subject:In-Reply-To:References:From; b=bZX1XDcE0jayDtJGm1FCwW3/W/mK0q78gforLRKbQqjH6CTIfC5oPoMDHvk1ZmR8B btVKjPU7VtujV0DG8qrIVmC2d3dnJtJIQrtJetY2xZ6okxwwyA87dWaC/Uw4++oJTr hYqVeLVhBt3dbBPSeICGy9x717uG9mqCNyIijM9Wc5VhmYx1c9LhBWQEJrF1SZzJl0 wyCmltNM7h+c06Shyv41ppRaEYtQJAh3v/AKRDD6M62vlzmnN+VCEdHs2K8oHWhaCC x33BffErvg/3qnFwzEyrAjs+OB6unN/JWTD5Z7Z7+UwXTpPoKzrTW0OV3LQdZKrDZP ii3yZnTE+OfdQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 69BA3180386 for ; Sat, 24 May 2025 09:47:28 +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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fout-b6-smtp.messagingengine.com (fout-b6-smtp.messagingengine.com [202.12.124.149]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 24 May 2025 09:47:28 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 6FFAD11400E8 for ; Sat, 24 May 2025 05:49:35 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Sat, 24 May 2025 05:49:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1748080175; x=1748166575; bh=GaUJhML2iANIeSu5lBcMEbzGTYXHgh0qjzyp2NYZ80M=; b= DA0h+SL4HFI1z/yeQHBsuoIXRSipwshO2Vv3S/7pjgsyxVXdPMm+3Vzsrkec8Gsv aMWe0fNBBEAk6bIOfBAvFIS2EJ2biT11V6DyyTOxSDqikOgqvkntDTSvilPWZtfF eAqKA0HE9i6SpxkuJPXG2NMZfcSxFkm2cFPA4LbEx0oyrZIjuofJCwukv6vskbBb UqAH1DoG3IaP9tf6pF8sB/ArG/DxHc5WVHRrAaQ6z/ZSlArh3dNPVWrBCJwiXA0A YkFV3PyEu25mTChGfMFEv+/pNu+zNyYKOx7SMi758ml39qxxXJ9pnNxRKr+DihZl f+bqk7xfj+/96t58VuIBvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1748080175; x=1748166575; bh=G aUJhML2iANIeSu5lBcMEbzGTYXHgh0qjzyp2NYZ80M=; b=eiu4p16CKQNxsaFuj RD+RecBge30LVWBMzpiVQ7UftGr6VsPIP9//vlcDQvJokjRNtt/AJCkDofeVzc47 Ep62y7dk1/suBqCpAwt54Kv/PyrZGsaTdL1PfBCj49lka+LoAiv87y9sc+vbsGI+ +QYNEgCSMeFDOCXnHVhtIsde+LMV4rsF9DsK9xVcqOogi2tVkA1xaxM5w4Vr7yLN U/faB5jQ6txpRTllgRGkQeGIiXZiGCeYHGt97C0NYcshXUD8z+1OQJS4luS4Jh/g 7nBrmiD6UyUTWSAq5EivfeKAJz3AO6j9h5o71M0pagkl8LfbT+sfLEw2yWv3HF8b ir6aw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgdduudegtdculddtuddrgeefvddrtd dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd dtnecunecujfgurhepfffhvffufggjfhfkgggtgfesthhqmhdttderjeenucfhrhhomhep fdftohifrghnucfvohhmmhhinhhsucglkffoufhorfgnfdcuoehimhhsohhprdhphhhpse hrfigvtgdrtghordhukheqnecuggftrfgrthhtvghrnhepheelffetiefgveduteefudeg tdduveeludegueegleehiefhhefgtdekveevgfelnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepihhmshhophdrphhhphesrhifvggtrdgtohdr uhhkpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhope hinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 24 May 2025 05:49:34 -0400 (EDT) Date: Sat, 24 May 2025 10:49:32 +0100 To: internals@lists.php.net Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_=5BRFC_Draft=5D_Introduce_wit?= =?US-ASCII?Q?h_as_an_alias_for_namespace_use_keyword?= User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <89FF6436-5805-48B4-A8C8-1059046231A9@rwec.co.uk> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 24 May 2025 10:08:46 BST, "=E9=A9=AC=E6=AD=A3=E5=BC=BA" wrote: >Hello internals, > >I=E2=80=99d like to propose adding with as a full alias for the namespace= -related >use keyword in PHP=2E =2E=2E=2E > - Does this improvement warrant an RFC? > - Are there objections to the concept or keyword choice? It would certainly need an RFC in order to add, because it's a core langua= ge change=2E Adding a new keyword generally requires reserving it in at lea= st some contexts, so the backward compatibility impact would need to be mad= e clear in any RFC as well=2E=20 Personally, though, I don't see any advantage at all=2E Both keywords seem= equally arbitrary, and the existing syntax has been established for over a= decade at this point=2E Having two ways to write the same thing is likely = to confuse new users about whether they do different things, and there won'= t be any incentive for existing code to change from one to the other, espec= ially since they won't be able to for several years if they support multipl= e PHP versions=2E=20 As for other languages, they use all sorts of different keywords for the s= ame or similar features, e=2Eg=2E "import" and "using", so it's not like PH= P is a weird outlier here=2E Regards, Rowan Tommins [IMSoP]