Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49342 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33512 invoked from network); 11 Aug 2010 15:06:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2010 15:06:03 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 188.40.37.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 188.40.37.16 hq1.backendmedia.com Linux 2.6 Received: from [188.40.37.16] ([188.40.37.16:57376] helo=hq1.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 84/D5-01618-B5CB26C4 for ; Wed, 11 Aug 2010 11:06:03 -0400 Received: from localhost (unknown [127.0.0.1]) by hq1.backendmedia.com (Postfix) with ESMTP id 4C1D0200C188; Wed, 11 Aug 2010 15:06:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from hq1.backendmedia.com ([127.0.0.1]) by localhost (hq1.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tKoycVzsbSk0; Wed, 11 Aug 2010 17:06:06 +0200 (CEST) Received: from [192.168.80.26] (77-58-253-248.dclient.hispeed.ch [77.58.253.248]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by hq1.backendmedia.com (Postfix) with ESMTPSA id B42E4200C187; Wed, 11 Aug 2010 17:06:05 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii In-Reply-To: <4C62B9E0.4030305@gmail.com> Date: Wed, 11 Aug 2010 17:05:59 +0200 Cc: internals@lists.php.net, Victor Bolshov , smalyshev@sugarcrm.com Content-Transfer-Encoding: quoted-printable Message-ID: <98F1C5D8-DA23-45B5-BA1F-F45B79CBC565@pooteeweet.org> References: <1281478269.6608.292.camel@guybrush> <4C61D6D0.90907@sugarcrm.com> <4C62B9E0.4030305@gmail.com> To: Ryan Panning X-Mailer: Apple Mail (2.1081) Subject: Re: [PHP-DEV] Strict typing From: mls@pooteeweet.org (Lukas Kahwe Smith) On 11.08.2010, at 16:55, Ryan Panning wrote: > Now, changing the current implementation to "weak type hinting" would = be more confusing. Because the current syntax used for type hinting = classes/arrays is strict. If changed, you would need to specify that = scaler types are weak but classnames are strict and now you have a WTH = moment. actually for objects its fairly along the lines of what is being = proposed with weak typing, since the type hints for objects do consider = inheritance. so you do not need to pass in exactly the object that is = type hinted, but instead you can also pass in any subclass (an integer = is a float). anyway .. for the love of god, could be please stop arguing in circles, = nothing .. really nothing that people brought forth pro/con any approach = in regards to type checking/hinting whatever hasn't been mentioned on = this list multiple times. please please please please .. read the RFC's on the wiki .. if there is = something not mentioned there .. ask the author of the RFC why that is = and see if they are willing to add it there and notify the list once. If = the author in question is unwilling to add it .. then .. and only then = bring it back to this list. regards, Lukas Kahwe Smith mls@pooteeweet.org