Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37151 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23205 invoked from network); 21 Apr 2008 01:25:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Apr 2008 01:25:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; 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:45040] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/D8-19592-1FCEB084 for ; Sun, 20 Apr 2008 21:25:09 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 21 Apr 2008 04:25:50 +0300 Received: from [192.168.17.23] ([192.168.17.23]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 20 Apr 2008 18:25:47 -0700 Message-ID: <480BECE7.3070109@zend.com> Date: Sun, 20 Apr 2008 18:24:55 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Markus Fischer CC: internals@lists.php.net References: <46ccd1ab0804170742g142ed562t4f03339da549a820@mail.gmail.com> <1208445852.5366.31.camel@felipe> <48079A46.9090403@zend.com> <1208458365.6148.21.camel@sbarrow-desktop> <48079F30.4090203@zend.com> <4809AC21.5000205@fischer.name> In-Reply-To: <4809AC21.5000205@fischer.name> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Apr 2008 01:25:47.0299 (UTC) FILETIME=[A0587F30:01C8A34E] Subject: Re: [PHP-DEV] [RFC] Strict type hints (parameter and return value) From: stas@zend.com (Stanislav Malyshev) Hi! > I may be missing something but in this context, "string" doesn't get > very useful (I think), because besides arrays / objects (except Yes, it's not very useful, I agree. However, if you define "useful" as "being able to reject arguments that can be converted to strings but aren't marked as strings", then your definition of useful is radically different from mine, because I don't think PHP programmer needs to do such things (for my nitpicking friends around here, please add "unless he's using is_string or serializing or using other one or two very special cases not relevant to this discussion anyway" :). 5 marked as "integer" and 5 marked as "string" have no useful distinction outside of the context of C engine programming. > I also think for many people, including me who favor strict types, also I imagine how hard it was for you to write in PHP or any other dynamic language... -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com