Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82631 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64729 invoked from network); 13 Feb 2015 17:37:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Feb 2015 17:37:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.214 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.214 mail4-2.serversure.net Linux 2.6 Received: from [217.147.176.214] ([217.147.176.214:34649] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D9/15-40724-3763ED45 for ; Fri, 13 Feb 2015 12:37:55 -0500 Received: (qmail 26962 invoked by uid 89); 13 Feb 2015 17:37:52 -0000 Received: by simscan 1.3.1 ppid: 26956, pid: 26959, t: 0.0715s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.8?) (lester@rainbowdigitalmedia.org.uk@86.189.147.37) by mail4.serversure.net with ESMTPA; 13 Feb 2015 17:37:52 -0000 Message-ID: <54DE3670.7010408@lsces.co.uk> Date: Fri, 13 Feb 2015 17:37:52 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals@lists.php.net References: <5EF29B6C-D35B-47B8-8008-47B207B2840B@ajf.me> <54DE31DC.4090606@lsces.co.uk> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV][RFC][VOTE] Group Use Declarations From: lester@lsces.co.uk (Lester Caine) On 13/02/15 17:27, 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. Well one fix would be to have all the namespace stuff in the math.php file? All the use function stuff just loaded via the secondary file. But the other way of looking at is 'why do we have so many different libraries all doing the same thing?' Currently database abstraction is a complete mess simply because there is not now a standard way of doing things :( If you have to use two libraries with conflicting names is that not because there are problems with both libraries if you need to use both? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk