Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58071 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86250 invoked from network); 25 Feb 2012 23:00:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Feb 2012 23:00:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 207.97.245.113 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 207.97.245.113 smtp113.iad.emailsrvr.com Linux 2.6 Received: from [207.97.245.113] ([207.97.245.113:37806] helo=smtp113.iad.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 53/85-46034-D18694F4 for ; Sat, 25 Feb 2012 18:00:46 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp41.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id E204A29048E; Sat, 25 Feb 2012 18:00:42 -0500 (EST) X-Virus-Scanned: OK Received: by smtp41.relay.iad1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id B3332290433; Sat, 25 Feb 2012 18:00:41 -0500 (EST) Message-ID: <4F496818.8000405@sugarcrm.com> Date: Sat, 25 Feb 2012 15:00:40 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 MIME-Version: 1.0 To: Kris Craig CC: Samuel Deal , Richard Lynch , John LeSueur , Anthony Ferrara , Dmitri Snytkine , Sebastian Krebs , PHP internals list References: <4F455C96.50706@gmail.com> <4F455E91.2060408@alliantinternet.com> <028001ccf1ab$0b200050$216000f0$@alliantinternet.com> <4F457517.7050901@alliantinternet.com> <028d01ccf230$91d79b00$b586d100$@alliantinternet.com> <4F4686C6.2040207@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Enum proposal (yet another) From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > There are advantages to strict typing other than speed and safety. The > biggest compliant I hear from people asking for this is that weak > hinting often leads to bulkier code that is much more difficult to read, > particularly for someone who frequently switches between PHP and > compiled languages like C++ and C#. If somebody finds PHP much more difficult to read than C++, well, he obviously has a very different concept of reading than the rest of the humankind. As for other points, I don't think it really makes sense to discuss making PHP into C++ or any kind of strict typed language. If one needs strict typed compiled language, one knows where to find plenty of them. > > Therefore, allowing for strict typing, i.e. leaving it to the discretion > of the code author, would not necessitate converting PHP into a compiled I would really wish when we have this annual strict typing discussion people would bother to read past ones. Partial strict typing does not work, and in general strict typing in non-compiled language is asking for trouble. We talked about it many times. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227