Re: [RFC] Add Directive to Make All Namespaced Function CallsGlobal

From: Date: Sun, 04 Aug 2024 18:04:22 +0000
Subject: Re: [RFC] Add Directive to Make All Namespaced Function CallsGlobal
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-124745@lists.php.net to get a copy of this message
On Sun, 2024-08-04 at 20:02 +0200, Christoph M. Becker wrote: > On 04.08.2024 at 15:09, Nick Lockheart wrote: > > > To that end, I have created the following RFC: > > > > https://wiki.php.net/rfc/global_function_parser_directive > > I am asking that we discuss and vote on the following question: > > > > “Should there be some way for developers to signal to the parser at > > compile time that all unqualified function names found in a > > namespace > > context are global, without a namespace lookup?” > > > > Yes: We should do this, let's discuss syntax possibilities. > > > > No: This should not be a feature at all. > > Thanks for the PR! > > However, it seems to me that the "syntax possibilites" are an > important > part of the vote.  Maybe all will agree that having that option is > good, > but there still might not even be consensus on the "syntax". > > Maybe just some straw poll to gauge interest in the general feature > would be more appropriate? > > Christoph > That's exactly what this is: a straw poll on the feature itself.

« previous php.internals (#124745) next »