Re: Use behavior thoughts
| From: | reeze | Date: | Fri, 06 Mar 2015 08:38:27 +0000 |
| Subject: | Re: Use behavior thoughts | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84376@lists.php.net to get a copy of this message | ||
On 6 March 2015 at 16:35, Alexander Lisachenko <lisachenko.it@gmail.com>
wrote:
> Hello!
>
> 2015-03-05 22:40 GMT+03:00 Anthony Ferrara <ircmaxell@gmail.com>:
>
> > 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