Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82632 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66450 invoked from network); 13 Feb 2015 17:46:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Feb 2015 17:46:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=sbj.ml.read@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=sbj.ml.read@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.176 as permitted sender) X-PHP-List-Original-Sender: sbj.ml.read@gmail.com X-Host-Fingerprint: 209.85.223.176 mail-ie0-f176.google.com Received: from [209.85.223.176] ([209.85.223.176:40766] helo=mail-ie0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/75-40724-5883ED45 for ; Fri, 13 Feb 2015 12:46:45 -0500 Received: by iebtr6 with SMTP id tr6so10644380ieb.7 for ; Fri, 13 Feb 2015 09:46:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=lRoWWyMMXCTuZIQgKOl6/G0FDoccuHn764sJ8u0KknE=; b=uScuzkhN+d8A6p+0Y5ofsmdvg9/UwbTOKdEuSIvB4zVFSqQlIa7YYrWcN3z2HXVqF9 yzdsH30VbCcfoWiSzv1IzfY5avZ1fkdXkYNvkRKMHUGKYYKw3QQBYu8FkVMONtSL9/Mu KuPxqoxo2xHRp2k5Qv5+4bzF0joBcYfxX/KHCyNpc1BopORjFSYWaoVunOWOsej81s72 xFz2+96aCe8DyFerVF+Y2WgtaOxCXG+tviGns8p9pEjF2cd1ggvx1gJGsF5Hov28WlKY PPG3CISJqGIm15JM5Wm5qs5TnVrL4/Rqn44lY/Ib4DEFeN6TcCB9ttjyTB9kzg8vIH14 1qRA== MIME-Version: 1.0 X-Received: by 10.107.163.129 with SMTP id m123mr13325718ioe.85.1423849602879; Fri, 13 Feb 2015 09:46:42 -0800 (PST) Received: by 10.107.29.205 with HTTP; Fri, 13 Feb 2015 09:46:42 -0800 (PST) In-Reply-To: <54DE3670.7010408@lsces.co.uk> References: <5EF29B6C-D35B-47B8-8008-47B207B2840B@ajf.me> <54DE31DC.4090606@lsces.co.uk> <54DE3670.7010408@lsces.co.uk> Date: Fri, 13 Feb 2015 18:46:42 +0100 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV][RFC][VOTE] Group Use Declarations From: sbj.ml.read@gmail.com ("Sebastian B.-Hagensen") Hi, 2015-02-13 18:37 GMT+01:00 Lester Caine : > On 13/02/15 17:27, Andrea Faulds wrote: >>>> But with Marcio=E2=80=99s 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=E2=80=99t say I miss the days of putting everything in the global = namespace. Makes it impossible to use two libraries with conflicting functi= on 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. You would still need to import those functions into the current namespace. Hence this rfc