On Fri, 2024-08-02 at 18:53 +0100, Rowan Tommins [IMSoP] wrote:
> 
> 
> On 2 August 2024 18:19:41 BST, Nick Lockheart <li...@ageofdream.com>
> wrote:
> > I had suggested a per-file directive in a post to this list a while
> > back. Something like:
> > 
> > namespace foo;
> > use global functions;
> 
> There was a proposal for exactly this a few years ago, which ended up
> in an RFC with a slightly different syntax (using a declare()
> statement), but was declined in voting by 35 votes to 2.
> 
> I can't remember much about the discussion, so am not sure what
> changes would make a new attempt more likely to pass.
> 
> Regards,
> Rowan Tommins
> [IMSoP]

In all likelihood, it was the syntax that was disfavored.

What about an RFC where we vote on if the feature should exist, without
any syntax?

ie. "Should there be a way for developers to signal to the parser that
all functions should be treated as global and skip NS lookup, and use
dedicated opcodes? The specific syntax would be decided in a different
RFC/vote if this one passes."

Yes: We should do this, let's discuss syntax possibilities.
No: This should not be a feature at all.

Reply via email to