Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34511 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85745 invoked by uid 1010); 5 Jan 2008 21:16:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85730 invoked from network); 5 Jan 2008 21:16:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2008 21:16:04 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:52324] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/8F-20677-393FF774 for ; Sat, 05 Jan 2008 16:16:04 -0500 Received: from trainburn-lm-corp-yahoo-com.local (c-24-6-228-50.hsd1.ca.comcast.net [24.6.228.50]) (authenticated bits=0) by mail.lerdorf.com (8.14.2/8.14.2/Debian-2) with ESMTP id m05LG2Ed023170 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 5 Jan 2008 13:16:03 -0800 Message-ID: <477FF392.3030206@lerdorf.com> Date: Sat, 05 Jan 2008 13:16:02 -0800 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Stefan Esser CC: internals Mailing List References: <477DB7BF.10201@chiaraquartet.net> <20080104105558.GC7861@mint.phcomp.co.uk> <477E5649.2080104@chiaraquartet.net> <477E619C.2050107@sektioneins.de> <477E78D0.3050501@zend.com> <698DE66518E7CA45812BD18E807866CE01103ED3@us-ex1.zend.net> <1199472536.15292.185.camel@sbarrow-desktop> <698DE66518E7CA45812BD18E807866CE01103EE2@us-ex1.zend.net> <477ED01F.3090300@dealnews.com> <477FC27A.2070309@lerdorf.com> <477FEF04.5090601@sektioneins.de> In-Reply-To: <477FEF04.5090601@sektioneins.de> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92/5379/Sat Jan 5 12:21:36 2008 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] type hinting From: rasmus@lerdorf.com (Rasmus Lerdorf) Stefan Esser wrote: >> Be conservative in what you do; be liberal in what you accept from >> others. > You hopefully realise that this is exactly the opposite of your earlier > opinion that ext/filter should be used to block everything and let only > harmless data through. And only have raw data on demand... Not at all. Filtering is about the contents of the data, not the scalar type. It is only the most trivial of filtering that is solved by typing. It is the value of the number or the contents of the string that will trip you up, not whether it is a string or a number. > I really don't understand why adding a *new feature* to the language > (that you can use or just not use and) that helps writing better code > and helps potential optimizers (that will come up as soon the feature is > implemented) to highly optimize the code get so much resistance... I'm not against it, but if it is implemented, it needs to make sense. -Rasmus