Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52063 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23278 invoked from network); 28 Apr 2011 17:36:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Apr 2011 17:36:40 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.173 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.173 smtp173.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.173] ([67.192.241.173:38919] helo=smtp173.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/03-03888-6A5A9BD4 for ; Thu, 28 Apr 2011 13:36:39 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp7.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 265F82580E6; Thu, 28 Apr 2011 13:36:36 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp7.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id A026D258146; Thu, 28 Apr 2011 13:36:35 -0400 (EDT) Message-ID: <4DB9A5A2.2080208@sugarcrm.com> Date: Thu, 28 Apr 2011 10:36:34 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Rasmus Lerdorf , Reindl Harald , "internals@lists.php.net" References: <4DB923E6.3020307@sugarcrm.com> <4DB925D4.5090107@thelounge.net> <4DB926B4.5000307@sugarcrm.com> <20110428085859.GJ8496@phcomp.co.uk> <4DB936C8.2080801@lerdorf.com> <20110428095958.GM8496@phcomp.co.uk> In-Reply-To: <20110428095958.GM8496@phcomp.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Return type-hint From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > There will also be advantages for HipHop which can afford to spend the time to > do static analysis of code -- I know that HipHop is not your baby > but you now need to recognise that there is more than one PHP implementation > and features that may not had much advantage with Zend may be useful elsewhere. If you want a statically typed language, there are tons of these on the market. However, unless you change PHP into another - statically typed - language, I do not see how it really helps. What you talking about here is creating a dialect of PHP targeted for statically-compiled environment. I personally see it a bit pointless, since there are already many perfectly good static languages on the market, with excellent compilers and environments - so why not use any of these? But that shouldn't deter you - my personal opinion is just that, if you want to create your own static PHP, go ahead. But I do not believe doing it in little tweaks would work - if you want reliable typing, you need it everywhere. However, I seriously doubt PHP as a whole would benefit from it. Most uses of PHP are very dynamic and would not yield serious benefits from introducing static typing constructs beyond very specific cases in very specific environments. Changing the whole language to benefit these narrow scenarios does not seem beneficial to me. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227