Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34439 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 195 invoked by uid 1010); 4 Jan 2008 18:28:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 180 invoked from network); 4 Jan 2008 18:28:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2008 18:28:28 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:28034] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/89-63281-ACA7E774 for ; Fri, 04 Jan 2008 13:28:27 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 4 Jan 2008 20:28:22 +0200 Received: from [192.168.16.90] ([192.168.16.90]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 4 Jan 2008 10:28:18 -0800 Message-ID: <477E7AC3.20009@zend.com> Date: Fri, 04 Jan 2008 10:28:19 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Sam Barrow CC: internals Mailing List References: <477DB7BF.10201@chiaraquartet.net> <20080104105558.GC7861@mint.phcomp.co.uk> <477E5649.2080104@chiaraquartet.net> <1199466070.15292.140.camel@sbarrow-desktop> <1199466701.15292.149.camel@sbarrow-desktop> In-Reply-To: <1199466701.15292.149.camel@sbarrow-desktop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 04 Jan 2008 18:28:18.0986 (UTC) FILETIME=[943000A0:01C84EFF] Subject: Re: [PHP-DEV] type hinting From: stas@zend.com (Stanislav Malyshev) > Exactly. I just added the "mixed" type hint which is the same as using > no type hint. The new patch is attached. IMO adding new type hint for the sole purpose of having some string next to the variable is just silly. If you need documentation, use documentation. > Extra keywords (real, long, double, etc.) have been taken out. The > available type hints are now mixed, int, float, bool, string, scalar, > num, resource, and object. And of course array and class type hints Do you realize that hinting variable as "object" or "resource" has no meaning, since resources and objects are not interchangeable and you never want just "object" or "resource" - you want object of particular class and resource of particular type? Also, what use case might there be for "scalar"? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com