Re: [RFC][VOTE] Group Use Declarations

From: 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 internals+get-82629@lists.php.net to get a copy of this message
> On 13 Feb 2015, at 17:18, Lester Caine <lester@lsces.co.uk> 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/

« previous php.internals (#82629) next »