Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68291 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98590 invoked from network); 23 Jul 2013 21:30:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2013 21:30:51 -0000 Authentication-Results: pb1.pair.com header.from=krebs.seb@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.177 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 209.85.192.177 mail-pd0-f177.google.com Received: from [209.85.192.177] ([209.85.192.177:60647] helo=mail-pd0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1D/11-26646-906FEE15 for ; Tue, 23 Jul 2013 17:30:50 -0400 Received: by mail-pd0-f177.google.com with SMTP id p10so8614695pdj.22 for ; Tue, 23 Jul 2013 14:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=hUy/a0UMrBOLEgj9ZWdZKJiZHMC+at24LWv/5JgEvZw=; b=pu+fEzDwv60UEfw+A2+RtlD6wJQGkz9nFLNKXpd+2C94tsjR82Cuq3w1RSly8JE4+K fXc7O7hBGH7/RPAgaHrW2YdU8P+4r4hN/gRri0nOyzKca7m/p7UVtRc7cgx+q0Dgy2VL /W6tkfc1vQSuQKnnBwO6p0jfuMEiEfOETU7uY5jNP0TV0fWRDapx+wQRmrxZkva8Jc0Z vjbvA7r+GA51vDh7zOOjFqYBIRRMzbhak6YDkR50pFd3LVRcJU1ejOfm7Qg2VsIKQCMW cES72THzs4Jo/u1kow2XOxx8JWX/CWiU/z78ABKjTQ8ClqHBZVEdyyND/o14cRQYADKY fuGQ== X-Received: by 10.66.240.2 with SMTP id vw2mr40580985pac.137.1374615046203; Tue, 23 Jul 2013 14:30:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.5.9 with HTTP; Tue, 23 Jul 2013 14:30:04 -0700 (PDT) In-Reply-To: <51EEF272.9060507@sugarcrm.com> References: <60BF8DD5-FEEA-47D9-834F-6C7FDEF3B879@wiedler.ch> <403E6D88-8057-48F1-A742-73D026CB1760@wiedler.ch> <51EEF272.9060507@sugarcrm.com> Date: Tue, 23 Jul 2013 23:30:04 +0200 Message-ID: To: Stas Malyshev Cc: Igor Wiedler , PHP internals list Content-Type: multipart/alternative; boundary=047d7b15a9d78831c204e2348122 Subject: Re: [PHP-DEV] [RFC] Importing namespaced functions From: krebs.seb@gmail.com (Sebastian Krebs) --047d7b15a9d78831c204e2348122 Content-Type: text/plain; charset=ISO-8859-1 2013/7/23 Stas Malyshev > Hi! > > > But actually I don't see: Why is "use" not enough? As far as I can see > your > > example, why it would introduce a BC, doesn't really match to original > > Consider this: > > use a\b\c as foo; > > foo(); > > Now it would resolve to global function foo(). If use were changed to > apply to functions, it would resolve to function \a\b\c() instead. > But if I explicitly import "foo" this way, this is intended :? Yes, "foo" could also be a classname, but right now it is also not part of the language to detect collisions. Additional I have _never_ seen any core- or user-function, whose name could be a classname to. Of course I've never seen every function ever written, but even if this a real issue, how many people are really affected? Regards, Sebastian. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > -- github.com/KingCrunch --047d7b15a9d78831c204e2348122--