On 23 August 2024 01:42:38 BST, Nick Lockheart <li...@ageofdream.com> wrote: > >> >> BUT, if people already complain about "\" being ugly, having to write >> "namespace\" is going to make them REALLY grumpy... >> So maybe at the same time (or, probably, in advance) we need to come >> up with a nicer syntax for explicitly referencing the current >> namespace. > > namespace foo using global functions; > > - or - > > namespace foo using local functions; > > >Tell PHP what you want at the per-file level. This doesn't seem mutually exclusive to me. If you have a file where you've opted for "using global functions", you might want a way to reference a function in the current namespace. It also doesn't address my other point, that having global as the default mode (even if we provide an option for local) is much less disruptive to existing code. Regards, Rowan Tommins [IMSoP]
- Re: [PHP-DEV] [Concept] Flip relative f... Stephen Reay
- Re: [PHP-DEV] [Concept] Flip relative f... Rowan Tommins [IMSoP]
- Re: [PHP-DEV] [Concept] Flip relative funct... Mike Schinkel
- Re: [PHP-DEV] [Concept] Flip relative f... Rowan Tommins [IMSoP]
- Re: [PHP-DEV] [Concept] Flip relative f... Mike Schinkel
- Re: [PHP-DEV] [Concept] Flip relative f... Rowan Tommins [IMSoP]
- Re: [PHP-DEV] [Concept] Flip relative f... Mike Schinkel
- Re: [PHP-DEV] [Concept] Flip relative f... Rowan Tommins [IMSoP]
- Re: [PHP-DEV] [Concept] Flip relative f... Mike Schinkel
- Re: [PHP-DEV] [Concept] Flip relative function looku... Nick Lockheart
- Re: [PHP-DEV] [Concept] Flip relative function ... Rowan Tommins [IMSoP]
- Re: [PHP-DEV] [Concept] Flip relative funct... Nick Lockheart
- Re: [PHP-DEV] [Concept] Flip relative f... Rob Landers
- Re: [PHP-DEV] [Concept] Flip relative f... Rob Landers
- Re: [PHP-DEV] [Concept] Flip relative funct... Stephen Reay
- Re: [PHP-DEV] [Concept] Flip relative f... Paul Dragoonis
- Re: [PHP-DEV] [Concept] Flip relative f... Rowan Tommins [IMSoP]
- Re: [PHP-DEV] [Concept] Flip relative f... Stephen Reay
- Re: [PHP-DEV] [Concept] Flip relative f... Rowan Tommins [IMSoP]
- Re: [PHP-DEV] [Concept] Flip relative f... Stephen Reay
- Re: [PHP-DEV] [Concept] Flip relative f... Rowan Tommins [IMSoP]