Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125082 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 C6C331A00BD for ; Wed, 21 Aug 2024 02:24:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724207154; bh=BSd5O8TLqEFzV0ZZgKh1QvNy95TIODRP/2suWrZGIWs=; h=From:Subject:Date:References:To:In-Reply-To:From; b=i9R/vm6d/W1q8HF1/wSciyXqpISWXTEAWlP89y6npVvMPhGzSgBNfEahSx97yIgkj +rDPregov2I7MUQODGxsf6TgjjJqhnQ9tb1Z5MpldEJuOmJwowBTz2/MgC3qtBCAMN va9u7A9NWSeO/ejjp12JZ1kdI7nTWUzaEjmytZOgW44vLTAUGWI9GJakm8eUaanKde wkm6XQ0AaU9K3OAMsL83+ltLj3RLI6WSTANwzsGIdJE79t0T9fyA51VoFO8oBufnP+ hv2WEjg/uhSHQUpNdrfrHMuGdflX37rCDhe4WWn6GKSx1GEpb9woJcAPUIWrMVxzVv bGGy+BBKOHEag== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BC14918004A for ; Wed, 21 Aug 2024 02:25:52 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail.gna.ch (mail.gna.ch [212.45.196.109]) (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 ; Wed, 21 Aug 2024 02:25:52 +0000 (UTC) Received: from smtpclient.apple (unknown [IPv6:2a02:1210:2e0f:4100:cd92:f947:228b:7477]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id CEB873A0F4C for ; Wed, 21 Aug 2024 04:24:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1724207040; bh=BSd5O8TLqEFzV0ZZgKh1QvNy95TIODRP/2suWrZGIWs=; h=From:Subject:Date:References:To:In-Reply-To; b=UN0huAn48ywTBZ/4fS9g6xaCjKeFq7AI43vwdg47q/BWtaqfwJLeVlMUatpIEmXB1 xOJs4sOsfZHi/vE43yt1e+opqhCgYA0O9H+UY+4d/hsl974V00bYN72KgdZd9BIfky F32d8rMy8f+oltmRjU9Jl+gnpueWBIBUNhSXZWR0= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local) Date: Wed, 21 Aug 2024 04:24:00 +0200 References: To: PHP internals In-Reply-To: Message-ID: <8B2CA646-5778-4C66-A17C-8A30405A854B@cschneid.com> X-Mailer: Apple Mail (2.3776.700.51) From: cschneid@cschneid.com (Christian Schneider) Am 20.08.2024 um 17:14 schrieb Levi Morrison = : > Keep in mind that qualifying > every global function is annoying but probably can be somewhat > automated, and will bring better performance. So again, this improves > the existing code even without upgrading. Just to be sure: Would code *not* using namespaces also have to qualify = global function calls? I admit that I somewhat skimmed the discussion so = I might have missed that point. The point where I think we disagree is that it improves the code. It may = improve performance of the code (even though I somewhat doubt this has a = *significant* impact on most projects) but it IMHO hurts readability. = Writing the additional \ is less of a problem but as code is read a lot = more often than written I think the additional "line-noise" is something = I'd like to avoid. Regards, - Chris