Re: Introducing "Array Of" RFC
| From: | Sara Golemon | Date: | Mon, 20 Jan 2014 19:55:31 +0000 |
| Subject: | Re: Introducing "Array Of" RFC | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-71342@lists.php.net to get a copy of this message | ||
>> This is a quite good point. If we're introducing limited-scope Generics
>> here, what's wrong with using Generics syntax, especially since it will be
>> familiar to C#, C++ and Java users?
>
> If we use the generics syntax for not-generics, then we can't EVER
> implement generics properly, so that would be an incredibly bad idea.
>
That's an excellent point, and all the better reason to discuss their
overlap NOW, rather than further down the road when we can't change
arrayof syntax.
To borrow from another message in this thread:
Dictionary<int, string>[] foo <-- Is that *really* what you want an
array of int->string dictionaries to look like? Really?
-Sara