Re: Return type hints

From: Date: Thu, 28 Sep 2006 19:50:56 +0000
Subject: Re: Return type hints
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-25871@lists.php.net to get a copy of this message
On Wed, September 13, 2006 4:57 am, Terje Slettebø wrote: > I'd say that's debatable. :) Yes, it can make it more convenient to > handle > data coming from outside the script (such as forms), but it can also > hide > bugs. While it can be argued that conversions between, say, arithmetic > types > (int and floats) may be useful, allowing conversion from something > like NULL > to empty string, integer 0, etc. (as PHP does) may be going a little Except that it's also very handy often-times. > over > board, as an uninitialised variable (such as a member variable) may > not be > easily discovered. You still haven't discovered E_NOTICE???... [much deleted] A year from now, are the purists going to be making missing type hints E_STRICT and E_DEPRECATED? :-) There's a point where I wonder why some people (not necessarily Terje) are using PHP at all. It's obvious they want an entirely different language... :-) -- Like Music? http://l-i-e.com/artists.htm

« previous php.internals (#25871) next »