On Fri, 2008-01-04 at 19:19 +0000, Alain Williams wrote: > On Fri, Jan 04, 2008 at 02:06:09PM -0500, Sam Barrow wrote: > > > > No, it's not better. Having GD image instead of mysql connection is not > > > better than having integer in any way. It would just produce different > > > error message, so what? > > > > That's actually very true. > > But the liklyhood is that the programmer will pass an int/float/string/... > rather than the wrong resource type. 'resource' will still be very useful > and catch many errors without being 100% perfect.
Also true, and the "resource" hint is still useful for documentation and clarity of code. Better than no type hint I'd say. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php