Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124747 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 4B2021A00B7 for ; Sun, 4 Aug 2024 18:14:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722795340; bh=UONLsYqAA5q79/vtkW7+tXWjGk4oFwnE0dRnhVBcMyI=; h=References:In-Reply-To:From:Date:Subject:To:From; b=X9SCd9FSeTz1CfR2hU1w2DhqDAuqqA4ebrA6Y6HkYM6SiaahuRSjL4wQtsKC+b/CE FKCBqmK+mDSe6fe4r4in55DoCVrQ6zMl2s5U1g7RW73upo4vhaxxvs9eueh7ftU2Lk cMwPkYJ/2VnHnRfR4Pv4zDZBCrrO3r3czNJ2kJpsYCAbfg3TUWLhxb52nXdk+avsDX dNVZlvqBjQWBfEJXrtwZa1OZDZWgbyy4V59Xykqm9EDA7wrwDIIKJq+gmkFTbX6Jhm kS3bAdP2ZBFTUa5q3S+bwr0Cv7xzOLTiWi3aioHJkVfFYoxenZmkAnNXpJQtcyMY3q cyin0I3m2UpLw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6423D18007A for ; Sun, 4 Aug 2024 18:15:38 +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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-oo1-f42.google.com (mail-oo1-f42.google.com [209.85.161.42]) (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 ; Sun, 4 Aug 2024 18:15:36 +0000 (UTC) Received: by mail-oo1-f42.google.com with SMTP id 006d021491bc7-5c669a0b5d1so6830878eaf.3 for ; Sun, 04 Aug 2024 11:13:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722795235; x=1723400035; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UONLsYqAA5q79/vtkW7+tXWjGk4oFwnE0dRnhVBcMyI=; b=QFnj4bJWJJOkGFeDt/M0aTUVqIp498IJqpPVpxE1qeeuOhS/d2wbQ3xy9L9jFnuqO7 b+bO9mWGh2BxMQB9tylkvue7pUsQmTgWNvnsU42EVlExAdQd0u1NcvufkWn+WO2GN3a8 nXH4KoUHLRCWNdsyl+9Uqbl9RO/fLSpcEOlPiGQ7IkGr49Zdar/jYHfqdcPsmifCbrYm ZpLK/woU8pgUZauKBwGZs1AlO5V8+NZuseS93eKnTSqg3pv9wd84iY7akAU/YyFOUCEL s9XyLOt/jRPYrkZwKgPywKON/vA3TGU4dSUYUoYY8EhCD/rLqRKeL/NrMwigiKCWVXj8 3rmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722795235; x=1723400035; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UONLsYqAA5q79/vtkW7+tXWjGk4oFwnE0dRnhVBcMyI=; b=eKkBkw1+1e/u8sLKnlryrzhOQb+Nno/uD1Hb3CeDNN/OvP1n3YEkqSOsWXHVDZ1Pj+ VMylh2NVc5TdKsRATNaIP8CVP3SPK7U3XsoawMKkS/7Jj00dGX9DVJRpOH1bme9hZfuc I1QFcNFJKCofue5+GvMg8UgIT2UtpkDue5cXr8k5BK8Ol4rW1LaROtkVRWMe31Y+VaSJ A6AMbvRPbrbXztwxMAV3MA+Oj4GpBVawtAKNepJLj0znDnOvlLJ7S2tUujZ6Qa0N1rJO 10TudFNmfWW6Pw/334RgjFExOq4+SJKvRan76CiPfuMpulpnvqQ+Ioegbm21ElQqngwo nLlQ== X-Gm-Message-State: AOJu0YwSxARZIniV+C4UepjGIb8Z/8593wUwAhI3JajFvOOZea7YGCrV 0QcX+ffxaOMYRRzIAnwJI90amfVepGThmR204ZngBDc8xjhKEBfvHNDsL0Y6EeAQpnpmBhtXfHH +y5Gm3F5PzbFOqCCFUd9GmetjpRThiLYTVJxPgQ== X-Google-Smtp-Source: AGHT+IHR4Rp+YYkZBrArm9KUFKpsexurYXiemNiXck9WwhdmhtZhkQoPoyKO3nEozDQlBvS+A/Wx9LfeaSeHt/M3+AQ= X-Received: by 2002:a05:6358:94a9:b0:19c:31be:ecb9 with SMTP id e5c5f4694b2df-1af3ba1ca32mr1234214655d.11.1722795234573; Sun, 04 Aug 2024 11:13:54 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 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> In-Reply-To: <5f1da5195e2aea7ec41e95ff4354f50b1717d3cf.camel@ageofdream.com> Date: Sun, 4 Aug 2024 20:13:44 +0200 Message-ID: Subject: Re: [PHP-DEV] [RFC] Add Directive to Make All Namespaced Function Calls Global To: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Nick On Sun, Aug 4, 2024 at 7:29=E2=80=AFPM Nick Lockheart wrote: > > So I wanted to get a "yes" from the people who need to say yes, then > discuss all of those things you mentioned: > > 1. File level vs global > 2. Syntax > 3. Alternative options > > But I think we need a "yes" for the concept first. Otherwise the vote > will fail on the details, as they have in the past. But that's not quite what the RFC says: > I am asking that we discuss and vote on the following question: > > =E2=80=9CShould there be some way for developers to signal to the parser = at compile time that all unqualified function names found in a namespace co= ntext are global, without a namespace lookup?=E2=80=9D Which implies: 1. There is _some_ change to syntax. 2. All unqualified calls become global. So, it doesn't seem like there's room for alternative approaches within the definition of your RFC. Both of these points are not compatible with my proposal. Ilija