Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34412 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10219 invoked by uid 1010); 4 Jan 2008 16:54:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10193 invoked from network); 4 Jan 2008 16:54:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2008 16:54:03 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.188 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.188 rv-out-0910.google.com Received: from [209.85.198.188] ([209.85.198.188:12962] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/87-63281-7A46E774 for ; Fri, 04 Jan 2008 11:54:02 -0500 Received: by rv-out-0910.google.com with SMTP id k15so5084864rvb.23 for ; Fri, 04 Jan 2008 08:53:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=0f9FPB/8f6pjN45FycJEh46XqLIZNbe+14qimnwGF/Y=; b=JFh1/QHlw82vqhUBN2z5VJ/5Agpa9JEjgl4dVXKi/mu51VKIwP7r/n/qM9Okxx74D7Bwc0dmcYIyulS8DUFozZO1JIXQqRbUmvXuU4wAFftbwVb0wD35wZmgbsFskyIfhm6faQOBjFeHeZzOer5smJOi/imM3uS+nXnZDBWH+8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=li4OrBKYYhnjC13hqlQleZHcmKvAhf0Aj2dNNvpNT1xCnd9HLbIBcOiA+N11UmvZVm3tdaUfScwa2C41LVzCOpX29g6P/BCmCHD8flLk765OOqXjq/MkYZtVf7oiJMiAPYfQV1ODBJyvH/fG2lciSIgyG4Qd1NI/at6mlVs+Rn4= Received: by 10.141.107.13 with SMTP id j13mr8967863rvm.276.1199465636548; Fri, 04 Jan 2008 08:53:56 -0800 (PST) Received: by 10.141.177.21 with HTTP; Fri, 4 Jan 2008 08:53:56 -0800 (PST) Message-ID: Date: Fri, 4 Jan 2008 17:53:56 +0100 To: "Gregory Beaver" Cc: "Alain Williams" , "internals Mailing List" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <477DB7BF.10201@chiaraquartet.net> <20080104105558.GC7861@mint.phcomp.co.uk> <477E5649.2080104@chiaraquartet.net> Subject: Re: [PHP-DEV] type hinting From: pierre.php@gmail.com (Pierre) 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