Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125110 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 9401A1A00BD for ; Fri, 23 Aug 2024 08:16:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724401101; bh=eX60qv0hG42WRko4aGSnnZO0VumGFAhB7zaXxD/riAw=; h=Date:From:To:Subject:In-Reply-To:References:From; b=gD44R5vbk5xH69a4/hqlDWP8RbqTxLeyPHHdjIY8C8KP+dq7KtiNksnfrGEYL/Ylz IuNrTIOWdwkbLkBd1REVOCMp0gqu1qiy81SVC/eDsVq7lpZYegCF2bTr530hmlUe0z y2Ac3db45a2o4FhiRo/SgNW0KCZKKirRNVv6SasanxM+d9/zvhLyM1ll80a9OKhuMk Z3yrS+SR/0VJoF5Cw9mrGX8MSoor/i6L01GhUMn9EUt5+m94hYubcWVI/+L41LLFEn xYAZTfTK+ZX/j6NgkwBX9KNcztDdL2mn1fqRnO3CEd3w1SiPVh4RpM5/sFyXhn7nEZ ryp1KIVeTgfrA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2C4C118004A for ; Fri, 23 Aug 2024 08:18:20 +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 fhigh1-smtp.messagingengine.com (fhigh1-smtp.messagingengine.com [103.168.172.152]) (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:18:19 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 21C601151B0B for ; Fri, 23 Aug 2024 04:16:28 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Fri, 23 Aug 2024 04:16:28 -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=1724400988; x=1724487388; bh=eFQ4l9tVaYotSNul+0BqiJ466LppE6oKI7stC41mLVs=; b= QaMcIPdztkKYs/8mc4MSxc8ZILY5yR2rOIu4VMojSj2IVuMcyYtLaWP4VWMpX9SH ZnzAp+JBaoBFbtsh+OSWHotWS8hXOuqxCDKbtvU0lPnbhj8KSqO5kUdLItU5JiVP RxwEHo/NnD0Rk6/oCdB4z4ar3347U4GPirF51LmL5/FK8+RJ5UeZZCHSkMUfpfWD AW/LqQTL43zdasQy8e0AJkvm8rrjGJ8NLG5akit9cikP3y+Y2tQVbfrC8oKry+Hx RQl4vfqtvfmQUS2+ictvUa+qAJUeBiNqItwZoLILs9GNgBVqu2ojkxfFuHOYxDoa gjgTdLEE5pUSpyBd5d+OLw== 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=1724400988; x= 1724487388; bh=eFQ4l9tVaYotSNul+0BqiJ466LppE6oKI7stC41mLVs=; b=P 47HFK7cuPytQ53XF3PyDX0cKKAWIW1P0zJC72/1X8kMldQPOZxcnkOoa4CnlO2Cb ozPHaXgCeK2+97jhK7WYzydEhTV3sTL7uVRxdXMA73ARtivX9Df+W5k5Y1xhGA0q SL5vWFfPazb9fzcTALyFH5JvAejUOt4o/vDy782EAcFv3Y/BUtH9qrtwEP87WdZE O2V0QyzqEhPQJEiVE8oT65hm2C3fhc5XSPsOOxCl5q8X/MkuVmBYg6PMtrAqIfDL ys1P6Vwdqrp/h6AS3ZW1ZTEEsQrTrYlotzo7K7giuP8g1iL1E1QpL97fvGuw/cOI 7eWgSAjoUzdAy3Lr9Q6wg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddvvddgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuf gfjghfkfggtgfgsehtqhhmtddtreejnecuhfhrohhmpedftfhofigrnhcuvfhomhhmihhn shculgfkoffuohfrngdfuceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqeenuc ggtffrrghtthgvrhhnpeehleffteeigfevudetfedugedtudevledugeeugeelheeihfeh gfdtkeevvefgleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghrtghpthhtohep uddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhish htshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 23 Aug 2024 04:16:27 -0400 (EDT) Date: Fri, 23 Aug 2024 09:16:26 +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: <21D6F160-5EAE-44FA-907B-E1DAAC1B8D75@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 01:42:38 BST, Nick Lockheart wr= ote: > >>=20 >> BUT, if people already complain about "\" being ugly, having to write >> "namespace\" is going to make them REALLY grumpy=2E=2E=2E >> So maybe at the same time (or, probably, in advance) we need to come >> up with a nicer syntax for explicitly referencing the current >> namespace=2E > > namespace foo using global functions; > > - or -=20 > > namespace foo using local functions; > > >Tell PHP what you want at the per-file level=2E This doesn't seem mutually exclusive to me=2E If you have a file where you= 've opted for "using global functions", you might want a way to reference a= function in the current namespace=2E=20 It also doesn't address my other point, that having global as the default = mode (even if we provide an option for local) is much less disruptive to ex= isting code=2E Regards, Rowan Tommins [IMSoP]