Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25871 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62874 invoked by uid 1010); 28 Sep 2006 19:50:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 62859 invoked from network); 28 Sep 2006 19:50:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Sep 2006 19:50:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:4882] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/57-21168-0A72C154 for ; Thu, 28 Sep 2006 15:50:59 -0400 Received: (qmail 58339 invoked by uid 98); 28 Sep 2006 19:50:57 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-1.25 (clamdscan: 0.88.4/1948. Clear:RC:1(127.0.0.1):. Processed in 0.066828 secs); 28 Sep 2006 19:50:57 -0000 X-Qmail-Scanner-Mail-From: ceo@l-i-e.com via o2.hostbaby.com X-Qmail-Scanner: 1.25 (Clear:RC:1(127.0.0.1):. Processed in 0.066828 secs) Received: from unknown (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 28 Sep 2006 19:50:56 -0000 Received: from 208.195.234.254 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Thu, 28 Sep 2006 14:50:56 -0500 (CDT) Message-ID: <27749.208.195.234.254.1159473056.squirrel@www.l-i-e.com> In-Reply-To: <0d4001c6d71a$fa124260$a900000a@adstate.local> References: <0a1301c6d64f$8af01c70$a900000a@adstate.local> <74293252.20060912230042@marcus-boerger.de> <00b501c6d6b4$632b7e90$9a02a8c0@pc> <10845a340609130053n395632f4ka5bbed3e49ce6ad2@mail.gmail.com> <0d4001c6d71a$fa124260$a900000a@adstate.local> Date: Thu, 28 Sep 2006 14:50:56 -0500 (CDT) To: Terje =?iso-8859-1?Q?Sletteb=C3=B8?= Cc: rquadling@googlemail.com, "Marcus Boerger" , internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Return type hints From: ceo@l-i-e.com ("Richard Lynch") 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