On Tue, Apr 19, 2016 at 4:13 PM, Stanislav Malyshev <smalys...@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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php