Am 14.04.2008 um 19:04 schrieb Chris Stockton:
You are missing the point, why be strict on return types, and liberal on parameters? Be strict
Because IMHO a function can easily specify what it is returning but should be flexible in what it accepts - that's what a good PHP API is to me. Asking for consistency just for the sake of consistency seems wrong here. Especially when it sends out the message that function parameters should be (over-)specified to exact types.
consistently or be liberal consistently. Or, keep php, php. I could care less as long as things are
Keeping PHP close to the original principles of KISS and "make common things easy" is also a goal of mine.
- Chris -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php