Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34350 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96923 invoked by uid 1010); 3 Jan 2008 20:51:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 96903 invoked from network); 3 Jan 2008 20:51:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2008 20:51:40 -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:56517] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/45-20810-7DA4D774 for ; Thu, 03 Jan 2008 15:51:39 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 3 Jan 2008 22:51:30 +0200 Received: from [192.168.16.90] ([192.168.16.90]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 3 Jan 2008 12:51:27 -0800 Message-ID: <477D4ACF.3030006@zend.com> Date: Thu, 03 Jan 2008 12:51:27 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Sam Barrow CC: internals@lists.php.net References: <200801031903.01980.tomi@cumulo.fi> <1199380881.15292.11.camel@sbarrow-desktop> <20080103172813.GQ7861@mint.phcomp.co.uk> <477D2B40.9010302@fischer.name> <477D2CDB.3000005@zend.com> <477D452A.9090906@zend.com> <1199392531.15292.64.camel@sbarrow-desktop> In-Reply-To: <1199392531.15292.64.camel@sbarrow-desktop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Jan 2008 20:51:27.0227 (UTC) FILETIME=[68C3D4B0:01C84E4A] Subject: Re: [PHP-DEV] RE: Optional scalar type hinting From: stas@zend.com (Stanislav Malyshev) > In a way this is true, but I look at it this way. Some languages are > strictly typed, some are dynamically typed. PHP can have the best of > both worlds by having optional strict typing where desired, as well as I do not believe trying to both eat cake and leave it intact would do us well. Mixing strict and non-strict code would be a nightmare. Absence of static type control (necessary for interpreted language) would make strictly typed code less, and not more stable. Add performance penalty from type checking and effort would be required from PHP newcomers to understand two code models instead of one - and you get the worst of both worlds, not the best. > Strict typing allows very little room for type conversion. This is > optionally hinting the desired type of a function parameter. That's not what I am hearing here on the list. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com