Re: [RFC:generics]
| From: | Sara Golemon | Date: | Wed, 20 Apr 2016 01:17:18 +0000 |
| Subject: | Re: [RFC:generics] | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92514@lists.php.net to get a copy of this message | ||
On Tue, Apr 19, 2016 at 4:13 PM, Stanislav Malyshev <smalyshev@gmail.com> wrote:
>> class Collection<T as (Traversable | Countable)> {...
>
> I am sorry if this sounds harsh, but I really hope we won't have
> something like this in PHP. Java templates are complex and weird enough,
> adding another layer on top of that to allow type expressions IMHO is
> really taking it too far.
>
Nah, I've yet to actually have use for anything so specific yet
either, but in the context of Mathieu was asking for, it seemed like a
good moment to direct the concept back to something more consistent,
at least.
-Sara