I see what you are trying to achieve, but I hope this will never make into PHP mainly for impact on readability. I'd like to quote Eric Armstrong, a passionate Java/Ruby dev:
> I decry their very existence. They are the ultimate condemnation of static > type checking--because their very addition has virtually destroyed both the > readability and elegance of the language. > To make my case, let's start with a quasi-mathematical definition of "elegance". > In my view, elegance is a function of power and simplicity. Power is measured > by how much you can do. Simplicity is the inverse of the number of characters > it takes to achieve the result. So more power with fewer characters equals > "elegance" http://www.artima.com/weblogs/viewpost.jsp?thread=299081 Devis On 21 October 2012 12:55, Alexey Zakhlestin <indey...@gmail.com> wrote: > > On 21.10.2012, at 0:59, Nikita <inefe...@gmail.com> wrote: > > > Hello, list. I want to propose generics. > <skip> > > So, what you think? > > I'm against having this in PHP. > > For IDEs, the better solution is to use generics-like syntax in docblocks. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >