Hi Tomáš, It has been thought about, and several people are looking at an implementation of generics: https://wiki.php.net/rfc/generics However, it seems quite hard to implement.
I am beginning to wonder if rather than aiming for full support of generics listed in that RFC, instead we just aimed for arrays that can only contain one type of variable as a good first step. cheers Dan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php