Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125111 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 qa.php.net (Postfix) with ESMTPS id D98371A00BD for ; Fri, 23 Aug 2024 08:52:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724403281; bh=4OslW+5FD2uMoKiPibxvDFkbPlZoj4q44GpvjXbsPp0=; h=Date:From:To:In-Reply-To:References:Subject:From; b=UlXcZnX+k+bO0krAojF6asZgcT9pfSrzik4CA5yFJYPxJZLVQfecuw6kPTo2x1Cq8 oeGQTVvBx0K+OSRvmIKLZlQ92GgGEn5LndXY6Ehda0LANOK9udIguK3AqG9J67t7f/ +TB7tSxr0AI8EnzXZl0RqtOa2EPV+iRNzJDvMZ9e30IvJnAAeCTlSFy1M2kgV59Ws5 4LJyyRzLB5iOXAzuYw4juaYkJNw4hUfd55LeyriJFdJRwMbp64cH1BTY5BB3aSlO1r 8RnrQcTNs88+KQCm5Lr6hsLoXriulJIwcqp68FwNTfHo3NuImsjSRZfWC3Q/07KzJm Eq4xic5MfIopQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D7C0F18003E for ; Fri, 23 Aug 2024 08:54:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout7-smtp.messagingengine.com (fout7-smtp.messagingengine.com [103.168.172.150]) (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 ; Fri, 23 Aug 2024 08:54:40 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id F0D8A138FFDA for ; Fri, 23 Aug 2024 04:52:48 -0400 (EDT) Received: from phl-imap-10 ([10.202.2.85]) by phl-compute-03.internal (MEProxy); Fri, 23 Aug 2024 04:52:48 -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=fm1; t=1724403168; x=1724489568; bh=w7CyNrsHgjsiyAD9GD7k8YFuCwNBnQCXuByC6x1EMoE=; b= jYumBiNtWzSv5DngctjIp6zp2sCfRK59AqHFjrcayMFWYSk7xDCG9ReGevYJuWEJ cBnoarFSGML7Xwg7ng2+HKDlTDtFMoSSQADOusYD62kPWj+G1DxFIYvdHPo558zj pQYEELJ6HZ7mBO5TOGLWxBBu4K84PxmMNxc5qKfbh0wJQm8ZYDyipZmXFIiU5pxz y0tZcA41dyMhvwqO+aNK4zVmTXVJsUbG4cpekXCxXBT2mvnc7Ei0GA8xerkHsowT ki7ytisf44x6AF8QuQoJn3OTPI+GSL0fr1USD+o2Swv7MWcPt/tx1S1Zs3vjc787 EMYFTFJbLsChLExqE5S1fw== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1724403168; x= 1724489568; bh=w7CyNrsHgjsiyAD9GD7k8YFuCwNBnQCXuByC6x1EMoE=; b=e tbm6dk5u+cEkLp4hUhazAEL/CKiZCrIWt9RErmshk4yMsEePUtwNszDoHun/B4Cj vaFMxQjxxrei648iX6zcEwVNHFhlrH3PHi0TA+URAgtOns+RAIbDl3l1/IWGBYuu kXzWjK0vNnKYD5g0yXiuYmTHfNoWDDR+x/VmIpBXH4iWkzXKD1qayslWdwnqvRY6 BAi8pcwFgXQLX9+mid1t54NI5QEl+IRT+yN7ypPYf0STFr3uO7oEgkGsawj4yRLM I/jZhF/SWty+nPuAPf7jjfKYA50u9b/g35hmXXnAfHH1D4uQ6JkhvkaftVZa86tY 4l7nGiL2WzCq32IJ+qVuQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddvvddgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffoh hmrghinhculdegledmnecujfgurhepofggfffhvffkjghfufgtgfesthejredtredttden ucfhrhhomhepfdftohifrghnucfvohhmmhhinhhsucglkffoufhorfgnfdcuoehimhhsoh hprdhphhhpsehrfigvtgdrtghordhukheqnecuggftrfgrthhtvghrnhepleevvefhtdev uddttedvudeiudejfeduteehiefhkeetffejhfekkeevhfffgeetnecuffhomhgrihhnpe efvheglhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghrtghpthhtoh epuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhi shhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id BBB293C0065; Fri, 23 Aug 2024 04:52:48 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 23 Aug 2024 09:52:28 +0100 To: internals@lists.php.net Message-ID: In-Reply-To: <880ffc27dc9b421407a670c75d5f5ba756870396.camel@ageofdream.com> References: <846D7756-712B-4A7C-9FC6-DB9F858836B8@rwec.co.uk> <880ffc27dc9b421407a670c75d5f5ba756870396.camel@ageofdream.com> Subject: Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local) Content-Type: text/plain Content-Transfer-Encoding: 7bit From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On Fri, 23 Aug 2024, at 08:27, Nick Lockheart wrote: > Could be mistaken, but I think the way PHP handles namespaces > internally is sort of the same as a long string, rather than as a > tree/hierarchy. Just to be clear, PHP already has a syntax for explicitly resolving a name relative to the current namespace, it's just not needed very often. See e.g. https://3v4l.org/Xfma5 and https://3v4l.org/3o2TD (You're right that underneath it's all just string concatenation, but that's all you need in this case.) All I was talking about was alternative syntax that would behave in exactly the same way that "namespace\Foo" already does. -- Rowan Tommins [IMSoP]