On Sun, 2024-08-04 at 19:15 +0200, Ilija Tovilo wrote: > Hi Nick > > I find it a bit unfortunate that you gave my thread barely any time > to > be discussed. >
My intent was to start a formal discussion on this very topic. > This can be achieved in various ways. For example: > > * Per-file, via declare(), new use syntax, or whatnot. > * Globally, through an INI setting. > * Via hard cut in a new PHP version, where a relative calls just stop > looking up local scope. > * By flipping lookup order, as proposed in my last thread. > > One might be in favor of one approach but not others. Of course, > everybody will be in favor of a "free" 2-4% speedup. Hence, a yes > vote > won't mean much. > > Ilija >From reviewing past RFCs over the past few weeks, I think the issue was too big and went in too many different directions to get consensus. So I thought the best approach would be to break it into different parts. If no one wants to implement this feature, it doesn't matter how or at what level. 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.