Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44689 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54839 invoked from network); 3 Jul 2009 22:40:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jul 2009 22:40:48 -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 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Linux 2.4/2.6 Received: from [63.205.162.117] ([63.205.162.117:34294] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/20-52395-FE88E4A4 for ; Fri, 03 Jul 2009 18:40:48 -0400 Received: from us-gw1.zend.com (us-ex1.zend.net [192.168.16.5]) by us-mr1.zend.com (Postfix) with ESMTP id B1E1BE12BB; Fri, 3 Jul 2009 15:29:38 -0700 (PDT) Received: from [192.168.27.29] ([192.168.27.29]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 3 Jul 2009 15:41:22 -0700 Message-ID: <4A4E88EB.6010404@zend.com> Date: Fri, 03 Jul 2009 15:40:43 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: RQuadling@googlemail.com CC: Ilia Alshanetsky , PHP internals References: <4A4BA5C8.1020204@zend.com> <10845a340907020525x786a196dv4959d522675ca6eb@mail.gmail.com> <4A4CE77F.2090302@zend.com> <10845a340907030241g1edcf8carc219683da69e1106@mail.gmail.com> In-Reply-To: <10845a340907030241g1edcf8carc219683da69e1106@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Jul 2009 22:41:22.0791 (UTC) FILETIME=[63FC4770:01C9FC2F] Subject: Re: [PHP-DEV] RFC: Type hinting revisited for PHP 5.3 From: stas@zend.com (Stanislav Malyshev) Hi! > I wonder if the split is between people coming to PHP from web design > (JavaScript/Perl) and coming to PHP from other programming languages > (VB/Java/C++/COBOL/ColdFusion - a long list [1]). I've mainly come I've learned Java in about '96 and Perl around the same time. I wonder which box you'd want to put me in :) > Maybe this could be solved easier and made more acceptable to all > sides if rather than calling it "type hinting" / "(optional) strict > typing" it was called "auto casting". But as proposed it's not casting, unlike (string) - which is casting - it would just reject the variable that is not string, without any attempt to convert type. It's strict typing, just like C or Java do. > So, rather than have the "explicit type conversions" being performed > by users of the libraries, why not incorporate the conversions into > the function/method declaration? That's what I was saying from the start. :) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com