Hi!

>> 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.

I don't think this additional usage of "use" makes it any more confusing.
Many keywords are reused elsewhere, including "use":
 - namespace importing
 - variable importing for closures
 - trait importing

(Ditto with "as.")

Thanks,
Tom                                       
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to