Re: Re: Improving PHP's type system
| From: | Lin Yo-An | Date: | Sun, 17 Apr 2016 10:22:44 +0000 |
| Subject: | Re: Re: Improving PHP's type system | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-92377@lists.php.net to get a copy of this message | ||
On Sun, Apr 17, 2016 at 6:06 AM, Bastian Schneider <
bastian.schneider@commerce-plus.com> wrote:
> Just a quick thought.
>
>
> union Iterable {
> use array;
> use ArrayAccess;
> use Traversable;
> }
>
I think this example creates another meaning on the "use" syntax, which
make "use" context depended.
The "use" statement is already used to "create an class name alias in the
current namespace." and this makes "use" confusing.
Thanks, Yo-An Lin