On 4/17/2016 12:22 PM, Lin Yo-An wrote:
> On Sun, Apr 17, 2016 at 6:06 AM, Bastian Schneider <
> bastian.schnei...@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.
> 

Especially since its not needed at all. HHVM already solved most of
these issues extremely nicely:

- https://docs.hhvm.com/hack/types/type-system
- https://docs.hhvm.com/hack/type-aliases/introduction
- https://docs.hhvm.com/hack/shapes/introduction

We want the same but do not want to copy?!?

-- 
Richard "Fleshgrinder" Fussenegger

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to