Re: type hinting

From: Date: Fri, 04 Jan 2008 19:19:43 +0000
Subject: Re: type hinting
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-34468@lists.php.net to get a copy of this message
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. -- Alain Williams Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php Chairman of UKUUG: http://www.ukuug.org/ #include <std_disclaimer.h>

« previous php.internals (#34468) next »