Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125106 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 74C421A00BD for ; Fri, 23 Aug 2024 07:05:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724396811; bh=nRpPnB99LVWmTHjMhjzU2Wzn46498PsrBzMurY95fHM=; h=Date:From:To:Subject:In-Reply-To:References:From; b=LIy/GiZKSOL9RxZZZUEGpPVaUuErkVnjwq3cdeKUflNSWgyAMrpT6NS5c0UM9l8Fd GRrHYWmQEoUvZIvfJXCy4okwZLyVqK7TdxbeUQz4k02tX7CX1cJvc6GAHhvaRyZ/vW NzcQqIU3FC/+QvdgAhEPFHFEWinGE1NhztHwzg03bGqyAYj2H07l0yFffvFsYd0k0T WffkZaTZLZiSyW3U5m1bBjowv7ZvINBjE9kOxYBcH+OBl0jLhxueDb3LITKobLYr4N 1RL1QMG9/LcHS9psclifcmacsv2jXNyRSU3GrWdv96sc5/Eh4oKqjgj1zLhlaGad1b lkLfUqAA9xsiw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 00E9B18006F for ; Fri, 23 Aug 2024 07:06:50 +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, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout6-smtp.messagingengine.com (fout6-smtp.messagingengine.com [103.168.172.149]) (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 07:06:49 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id 11EAA138FF27 for ; Fri, 23 Aug 2024 03:04:58 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Fri, 23 Aug 2024 03:04:58 -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=1724396698; x=1724483098; bh=+PM/vW/jq13AI0HzxrhasKF2FZ5HYrGDdY1qSIJyZDA=; b= ra96N2zgvtRuw1S4uz/Uq7ek0TfwHI4+zBNZhnYSsIQoOlxveFkeXwUt7+Qd74qU 0K8XszG4teiBvmLJow8ciLK6rWvOk2Czhd7wGS7KMlJGYHcdlC22w1RhV/riX76Y eGNxydIIrAHQTnA7xS/RBqXTtMxb4jlCIQUbLncqeBHbN1hFYn0c+cTMx9fVhfxL f5UH0xe1KsZnZK9JA4nx00NVa2Wz5GgWoHjdZTkPjqkyUQ/hcF4Eh0fjfH1X3rb4 NymvhM9NJ6VCsi5g15Vsx9eHswrqcEy5EHuhDKmhKaNp4B6u1KM5+r83vH2ifIpm CTWTUXnal7Z1g8xig9hI/w== 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=1724396698; x= 1724483098; bh=+PM/vW/jq13AI0HzxrhasKF2FZ5HYrGDdY1qSIJyZDA=; b=u TrWN73B1KQX3ko7FQeAuFD3sFNYiGnr7F6nKSks6g3TCmc7dKlcp/AHPB4O6kEbg hYQ7eZuknC9hhiycsfiPga9M1tXwWJ+GvxrX0+2qfsvbB4wE0+z6zfon0DDD3PAl PCcGItzih8LSSjP4Q0XR6PZ9NWv1vH3YWXMuAY/hka1devfG9pognlbKaNPiPyFC ynaj+t33TuZnXFqil5GPzr/xfCUB/8GA3Hvhsgx7V7rO7ACYFmyiHXIkGfUsJbUL Ie1+e8mvU4wBpL/5aqWs/2jNC5xbihNrAYwt00f3LJFw6tAcjVIu89upBAZN2Djj sHhjNRZScwxH9r1sYSzPA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddvuddgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvf fufggjfhfkgggtgfesthhqmhdttderjeenucfhrhhomhepfdftohifrghnucfvohhmmhhi nhhsucglkffoufhorfgnfdcuoehimhhsohhprdhphhhpsehrfigvtgdrtghordhukheqne cuggftrfgrthhtvghrnhepheelffetiefgveduteefudegtdduveeludegueegleehiefh hefgtdekveevgfelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepihhmshhophdrphhhphesrhifvggtrdgtohdruhhkpdhnsggprhgtphhtthho pedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghrnhgrlhhssehlih hsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 23 Aug 2024 03:04:57 -0400 (EDT) Date: Fri, 23 Aug 2024 07:39:41 +0100 To: internals@lists.php.net Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_=5BConcept=5D_Flip_relative_fu?= =?US-ASCII?Q?nction_lookup_order_=28global=2C_then_local=29?= User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <846D7756-712B-4A7C-9FC6-DB9F858836B8@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 23 August 2024 00:15:19 BST, Mike Schinkel wrot= e: >Having to prefix with a name like Foo, e=2Eg=2E Foo\strlen() is FAR PREFE= RABLE to _\strlen() because at least it provides satiating information rath= er than the empty calories of a cryptic shorthand=2E #jmtcw, anyway=2E I knew I'd regret keeping the example short=2E Realistically, it's not a s= ubstitute for "\Foo\strlen", it's a substitute for "\AcmeComponents\SplineR= eticulator\Utilities\Text\strlen"=2E Having a syntax for "relative to current" is incredibly common in other pa= th-like syntaxes=2E The most common marker is "=2E", and "=2E\foo" is liter= ally how you'd refer to something in the current directory under DOS/Window= s=2E But unfortunately, we don't have "=2E" available, so I wondered if "_"= would feel similar enough=2E Another option would be to find a shorter keyword than "namespace" to put = it in front=2E "ns\strlen(=2E=2E=2E)" is an obvious step from what we have = currently, but it's not very obvious what it means, so maybe there's a diff= erent word we could use=2E Rowan Tommins [IMSoP]