Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84375 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60299 invoked from network); 6 Mar 2015 08:35:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2015 08:35:47 -0000 Authentication-Results: pb1.pair.com header.from=lisachenko.it@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lisachenko.it@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.176 as permitted sender) X-PHP-List-Original-Sender: lisachenko.it@gmail.com X-Host-Fingerprint: 74.125.82.176 mail-we0-f176.google.com Received: from [74.125.82.176] ([74.125.82.176:35224] helo=mail-we0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F9/C1-41399-2E669F45 for ; Fri, 06 Mar 2015 03:35:47 -0500 Received: by wevl61 with SMTP id l61so57995186wev.2 for ; Fri, 06 Mar 2015 00:35: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; bh=SOFBxJzf118IkASPs5L8FU8Zc0qcqkzZiuLbqT1ALqo=; b=qgPpH3U3bGeyxcvGBrWhuAxd7zju1nSk07jITbdSXMvQ5tEevxLPPypx9JQlI5krum m876evbPKvgW1LaEmWYdZ6awDzMJzD3K6QmAfaeyyn84QtkWZ7mYcdLkVH34nmnvdUrH LGv0QyC5p4fifwoYgadjP2ZAbNk9I0bLMqlEEUQ8yxvr0IU9yqRPZMoW4V1uzPgv/csk KqATABoqk+6mw2o54qetQQHvWLs5zV7afxCMjKNNJvOhVR640RMo3CwLQgMxAnDMrVft aN4W/XpEAKTke4dBv2yaRezuWJjwdPFMOWzpy76DCla3auzpq0elY3g6jXwCOB96Dcez dcVA== MIME-Version: 1.0 X-Received: by 10.194.75.193 with SMTP id e1mr26374477wjw.126.1425630943354; Fri, 06 Mar 2015 00:35:43 -0800 (PST) Received: by 10.194.154.229 with HTTP; Fri, 6 Mar 2015 00:35:43 -0800 (PST) In-Reply-To: References: Date: Fri, 6 Mar 2015 11:35:43 +0300 Message-ID: To: Anthony Ferrara Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7bb03ea8f5a3cf05109a91ff Subject: Re: [PHP-DEV] Use behavior thoughts From: lisachenko.it@gmail.com (Alexander Lisachenko) --047d7bb03ea8f5a3cf05109a91ff Content-Type: text/plain; charset=UTF-8 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. --047d7bb03ea8f5a3cf05109a91ff--