Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49366 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84304 invoked from network); 11 Aug 2010 19:16:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2010 19:16:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.185 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:57242] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/00-18548-8F6F26C4 for ; Wed, 11 Aug 2010 15:16:12 -0400 Received: from il-gw1.zend.com (unknown [10.1.1.21]) by il-mr1.zend.com (Postfix) with ESMTP id 2661A5055B; Wed, 11 Aug 2010 22:15:50 +0300 (IDT) Received: from LAP-ZEEV.zend.com ([10.1.20.50]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 11 Aug 2010 22:16:02 +0300 Message-ID: <7.0.1.0.2.20100811213714.1540f338@zend.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Wed, 11 Aug 2010 21:40:13 +0300 To: Josh Davis Cc: Stas Malyshev , Internals In-Reply-To: References: <1281478269.6608.292.camel@guybrush> <4C61E5CA.5070604@sugarcrm.com> <4C61F3EF.5030409@sugarcrm.com> <4C6241D1.6030909@sugarcrm.com> <4C62DBE9.7090008@sugarcrm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-OriginalArrivalTime: 11 Aug 2010 19:16:02.0928 (UTC) FILETIME=[A3A95F00:01CB3989] Subject: Re: [PHP-DEV] Strict typing From: zeev@zend.com (Zeev Suraski) Josh, This too (having both options) was debated many times. Read the archives. Short version? Strict typing is evil. The only thing that's even worse? Adding both Strict typing and something else. Why? You get everything that's bad about strict typing, combined with the added confusion of two ways of doing similar things. Zeev At 21:31 11/08/2010, Josh Davis wrote: >On 11 August 2010 19:20, Stas Malyshev wrote: > > I'm against it on sanity and logic grounds. I explained the > reasons (for the > > Nth time) above. If you still can't comprehend that there's logic behind > > what I am saying and call it "ideology" - well, I guess there's a limit of > > what one can explain. > >I perfectly understand that there are reasons behind wanting the more >relaxed "smartcasting" to be the only option but please go ahead and >be condescending if you want. There is logic behind what you're >saying: your logic. It's not a universal logic though, as evidenced by >the lack of consensus. > >My point is this: Derick's proposal (which started this thread before >it got forked somehow) was to allow everybody to have it their way. >You are fighting tooth and nail to prevent that from happening, >choosing instead to impose your logic and your definition of what is >sound to the users. I call that ideology. My own ideology is to leave >that choice to the users if it doesn't incur a high cost. That way, my >ideology is more compatible with others'. > >Offering both typechecking and smartcasting is compatible with both >groups of users, which, btw, do overlap to some extent; if the feature >was available I'd use typechecking for internal functions and >smartcasting for most of the public stuff, depending on what rules it >follows. > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php