Agree this would slow things down but if it could be potentially type checked on the assignment with type constraint in front of the variable name I think that would be a neat feature. So to work as a function parameter but not like a typed property.
Hi Michał, A type check during the assignment is the intent of the proposal. I'll update the description to state this more explicit. As i wrote in the initial mail the implementation side is the one which is currently mostly unclear to me. To see which parts of the language would be affected by the change. I think if it's implemented in a central way each assignment could be affected by a type check. But as Nicolas stated that should be kept in a separate RFC if that's something we want to tackle further. Cheers, Enno -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php