Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124751 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 05F1A1A00B7 for ; Sun, 4 Aug 2024 18:39:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722796885; bh=I3G+L9bKGLcFMg8ixCNCEDKEpT91btiuRHlmTjB7gwo=; h=Subject:From:To:Date:In-Reply-To:References:From; b=UvCJ0tLs/rXXttHJETadhdO10szf2e2p1/Sqrje6U2CevdcgvoUmdRPXCkigV2Yzn axGGhT6MWHZZPdLT6qz08fktPtvdb4Cua3BlJ9yd45chyh2mMYvDYHNTDUivoHGYNb mWRbzXRvw06Lq2s6VLNiL8/q4cw7RYuS3jXZvSJ/0nNC5GpKXd2T7BEKR0d6yUe8v/ vf6vw/jqUCEKrWgJLZTQeK3DtQjQSXdVB0v5eGiYU+z3NoDyuIYW+K7/KwWP8mJZHN YI7/SXVoCLS+PUgfEetUkXycJCWUvsAk8AKzib0NBrd1NjAH1orvEcNrUUZn5pYc/I z7yQ+pLxauTeA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 037861801EE for ; Sun, 4 Aug 2024 18:41:23 +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_PASS, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from ageofdream.com (ageofdream.com [45.33.21.21]) (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 ; Sun, 4 Aug 2024 18:41:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ageofdream.com; s=ageofdream; t=1722796780; bh=I3G+L9bKGLcFMg8ixCNCEDKEpT91btiuRHlmTjB7gwo=; h=Subject:From:To:Date:In-Reply-To:References:From; b=fl5NnB0gYKSxLxVRxu4LLBFksc7Q4ju1ASIVoIkjw1IiNJPjEZq+8NynIVsovvUr3 g5cJeysth74SITQE6o8xcZVR8xZKEJj0Kwp7pBrj8Ys1KrqjbEgczWoxb2YFPWMGec 78i3kDJ2N7xwLnuCmQwY0iseVFVzjC4mdbwA9I05kyB/OKepSSh2Td542wdNxvj8tS sWE97KqUiDAG9wp7iyL38SBbUTG87W+mLQToiMyEieVvDOT0rbLfjPw1mhUe7qOTlW 6VY8/Y8dr8W2rkNwLF/94E5+DxAl+EEdNEMn7kWiTb8mHtrfl7KUNR303uBvPZnAaf oKxT+vgOTgI1w== Received: from [192.168.1.7] (unknown [72.255.193.122]) by ageofdream.com (Postfix) with ESMTPSA id 9271227985 for ; Sun, 4 Aug 2024 14:39:40 -0400 (EDT) Message-ID: Subject: Re: [PHP-DEV] [RFC] Add Directive to Make All Namespaced Function Calls Global To: internals@lists.php.net Date: Sun, 04 Aug 2024 14:39:40 -0400 In-Reply-To: References: <1a88918e-e808-d778-45e1-53797660e093@php.net> <3563cf9b-8eab-4c82-b525-a5d2f9a767bb@varteg.nz> <38920A4B-790D-48C7-B2F6-C49D3F506232@rwec.co.uk> <0824789d-0e36-4628-85c1-4b8d9b7f86af@varteg.nz> <2244a37f-8c51-448d-8a56-329ff32e6470@bastelstu.be> <0e1a21ddef3c7da17a3539b92d5f442763f4b1f8.camel@ageofdream.com> <5f1da5195e2aea7ec41e95ff4354f50b1717d3cf.camel@ageofdream.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 From: lists@ageofdream.com (Nick Lockheart) >=20 > But that's not quite what the RFC says: >=20 > > I am asking that we discuss and vote on the following question: > >=20 > > =E2=80=9CShould there be some way for developers to signal to the parse= r at > > compile time that all unqualified function names found in a > > namespace context are global, without a namespace lookup?=E2=80=9D >=20 > Which implies: >=20 > 1. There is _some_ change to syntax. > 2. All unqualified calls become global. I did not intend for all unqualified calls to become global, unless the new directive is present. There would be some new syntax for the directive, but behavior would remain unchanged without a new directive present. The issue is, when a question asks: "Should we do thing Y with syntax X", and the vote is only yes/no, then you have: Yes. No, because I don't think we should do it at all. No, because I don't like the syntax. But you can't tell the "no" votes apart. If the people who are allowed to vote are opposed to the idea, for whatever reason, extended syntax discussions aren't going to be a good use of time.=20 So I wanted to ask, "Will you do it if we can agree on a syntax?". Then if they will, we can discuss. I actually have several ideas in mind for things that aren't necessarily mutually exclusive, but I need to know that core is willing to consider/implement along these lines. What I'm trying to get out of this RFC is a clear yes or no from the people who are allowed to vote.