Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31107 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27409 invoked by uid 1010); 19 Jul 2007 17:51:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27393 invoked from network); 19 Jul 2007 17:51:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2007 17:51:55 -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 63.205.162.114 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.114 unknown Windows 2000 SP4, XP SP1 Received: from [63.205.162.114] ([63.205.162.114:47752] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/64-21764-AB4AF964 for ; Thu, 19 Jul 2007 13:51:54 -0400 Received: from [127.0.0.1] ([192.168.16.180]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 19 Jul 2007 10:51:51 -0700 Message-ID: <469FA4AE.8000905@zend.com> Date: Thu, 19 Jul 2007 10:51:42 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: troels knak-nielsen CC: internals@lists.php.net References: <74.B1.05050.EADEC964@pb1.pair.com> <98b8086f0707181255q2d338920o741d75b049efb4f7@mail.gmail.com> In-Reply-To: <98b8086f0707181255q2d338920o741d75b049efb4f7@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Jul 2007 17:51:51.0351 (UTC) FILETIME=[7C71A470:01C7CA2D] Subject: Re: [PHP-DEV] Re: Type-hinted return values in PHP5? From: stas@zend.com (Stanislav Malyshev) > It could be interesting to know, if the reason why this hasn't been > implemented already, is technical one, or a design decision? I think it's design one since nobody took care to design it :) I personally don't see much need for it, since PHP is not a compiled language, so there's little use for specific syntax of prescribing value types. Since PHP has no concept of variable type, it's not clear what return type hinting would give you that good documenting practices and a decent IDE won't. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com