Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84376 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61773 invoked from network); 6 Mar 2015 08:38:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2015 08:38:55 -0000 Authentication-Results: pb1.pair.com header.from=reeze.xia@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=reeze.xia@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: reeze.xia@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:41940] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/22-41399-B9769F45 for ; Fri, 06 Mar 2015 03:38:51 -0500 Received: by wevm14 with SMTP id m14so57981953wev.8 for ; Fri, 06 Mar 2015 00:38:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=EaCQqm6tx+BTwy7p6/1rAPxxacJKS4zjlXx2BHk9ZX8=; b=FImDtvaVEmgfr9JA0WjelRFFxSForEd/9hz2UV4zWygVYy/RleQ5QqHI3hsk0038ON Oh9glHoF1SKJhhtLjEBkra+aVbfhu2HUN2JOgvs7vEVn1SGPWopNoFNjEonX1FW6B7gX /sGxWzE+7+RCNKGoEbPTQuY4EJwP+XKWkNtfM4bALoDInAIL4bbhRV+P0iQ9j53Xgx7w tbUaTO8qqtz7yzl/OVZOogR1QYEcM3oUtloBJLQgnm4g0HnzYCwTO5QW1OvsXoAGvfEC cVKnbZzcIZWvrI99XcAgxzf5rCJ0IE6cT9qmsastHKaUpSed6Mt7MWAQtGXM44Pi+9cg TQ6g== X-Received: by 10.180.13.146 with SMTP id h18mr371718wic.73.1425631128127; Fri, 06 Mar 2015 00:38:48 -0800 (PST) MIME-Version: 1.0 Sender: reeze.xia@gmail.com Received: by 10.194.193.5 with HTTP; Fri, 6 Mar 2015 00:38:27 -0800 (PST) In-Reply-To: References: Date: Fri, 6 Mar 2015 16:38:27 +0800 X-Google-Sender-Auth: qzV-uYaq9ez-5h6U3qJzjOKN-CQ Message-ID: To: Alexander Lisachenko Cc: Anthony Ferrara , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c2270cf90ba805109a9c5e Subject: Re: [PHP-DEV] Use behavior thoughts From: reeze@php.net (reeze) --001a11c2270cf90ba805109a9c5e Content-Type: text/plain; charset=ISO-8859-1 On 6 March 2015 at 16:35, Alexander Lisachenko wrote: > Hello! > > 2015-03-05 22:40 GMT+03:00 Anthony Ferrara : > > > This requires use to immediately follow namespace declarations: > > > > namespace Foo { > > use Bar; //valid > > } > > namespace Bar { > > use Foo; //valid, second namespace in file > > } > > namespace Baz { > > echo "Hi!"; > > use Foo; // Invalid > > } > > > > This did break approximately 30 internal tests, but they were all > > testing this specific code path (or bugs related to it). > > > > I like this way, because it's more logical and readable. There aren't > unpredictable effects and misunderstanding with interpretation of source > code. > +1 -- Reeze Xia http://reeze.cn --001a11c2270cf90ba805109a9c5e--