Re: [RFC][VOTE] Group Use Declarations
From: Andrea Faulds Date: Fri, 13 Feb 2015 17:27:39 +0000 Subject: Re: [RFC][VOTE] Group Use Declarations References: 1 2 3 4 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
> On 13 Feb 2015, at 17:18, Lester Caine <[email protected]> wrote: > > On 13/02/15 16:41, Andrea Faulds wrote: >> But with Marcio’s proposal, we could instead write this: >> >> use function SomeLibrary\Math\{sin, cos, tan, degrees, radius}; > > Well it used to be simply ... > > require SomeLibrary\math.php; I can’t say I miss the days of putting everything in the global namespace. Makes it impossible to use two libraries with conflicting function names. -- Andrea Faulds http://ajf.me/
Thread (45 messages)
« previous | php.internals (#82629) | next » |
---|