Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34418 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32028 invoked by uid 1010); 4 Jan 2008 17:21:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32009 invoked from network); 4 Jan 2008 17:21:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2008 17:21:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:40557] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/AB-63281-D0B6E774 for ; Fri, 04 Jan 2008 12:21:19 -0500 Received: from MBOERGER-ZRH.corp.google.com (48-214.1-85.cust.bluewin.ch [85.1.214.48]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 1785E1B3652; Fri, 4 Jan 2008 18:21:15 +0100 (CET) Date: Fri, 4 Jan 2008 18:20:50 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1463438959.20080104182050@marcus-boerger.de> To: Pierre CC: "Gregory Beaver" , "Alain Williams" , "internals Mailing List" In-Reply-To: References: <477DB7BF.10201@chiaraquartet.net> <20080104105558.GC7861@mint.phcomp.co.uk> <477E5649.2080104@chiaraquartet.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] type hinting From: helly@php.net (Marcus Boerger) Hello Pierre, we never accepted this as a pro argument. Infact we often saw the necessaity to highlight something is optional to vote against it. We do this for a reason. That is we only want to support mainstream features. marcus Friday, January 4, 2008, 5:53:56 PM, you wrote: > On Jan 4, 2008 5:53 PM, Pierre wrote: >> On Jan 4, 2008 4:52 PM, Gregory Beaver wrote: >> >> > But I *don't* want my functions to take an argument of arbitrary type - >> > it is in fact you who are missing the point. A type hint is a poor >> > solution to a real problem that is much more easily solved via simple >> > input validation and graceful error handling. The current situation in >> > PHP provides a much more flexible solution to the same problem. >> >> Unlike our OO strictness (E_FATAL!!), nothing will prevent you to use > Read: othing will prevent you to >do not< use it :) > -- > Pierre > http://blog.thepimp.net | http://www.libgd.org Best regards, Marcus