Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34406 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54003 invoked by uid 1010); 4 Jan 2008 14:26:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53988 invoked from network); 4 Jan 2008 14:26:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2008 14:26:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=sam@sambarrow.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sam@sambarrow.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sambarrow.com from 205.234.132.11 cause and error) X-PHP-List-Original-Sender: sam@sambarrow.com X-Host-Fingerprint: 205.234.132.11 scottsdale.servershost.net Received: from [205.234.132.11] ([205.234.132.11:38733] helo=scottsdale.servershost.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/B3-29353-E124E774 for ; Fri, 04 Jan 2008 09:26:40 -0500 Received: from [98.172.154.66] (port=46529 helo=[10.200.100.14]) by scottsdale.servershost.net with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.68) (envelope-from ) id 1JAnVL-0004d4-WF; Fri, 04 Jan 2008 08:26:36 -0600 To: Brian Moon Cc: internals@lists.php.net In-Reply-To: <477D5A8A.4080903@dealnews.com> References: <200801031903.01980.tomi@cumulo.fi> <1199380881.15292.11.camel@sbarrow-desktop> <20080103172813.GQ7861@mint.phcomp.co.uk> <477D2B40.9010302@fischer.name> <477D2CDB.3000005@zend.com> <477D452A.9090906@zend.com> <1199392531.15292.64.camel@sbarrow-desktop> <477D4ACF.3030006@zend.com> <1199395138.15292.72.camel@sbarrow-desktop> <477D58ED.6030101@zend.com> <477D5A8A.4080903@dealnews.com> Content-Type: text/plain Date: Fri, 04 Jan 2008 09:25:04 -0500 Message-ID: <1199456704.15292.129.camel@sbarrow-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - scottsdale.servershost.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sambarrow.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] RE: Optional scalar type hinting From: sam@sambarrow.com (Sam Barrow) On Thu, 2008-01-03 at 15:58 -0600, Brian Moon wrote: > I don't get it. We already have type hinting, just not for scalars. > The discussion seems to be about whether or not we should have it all. > But, the truth is, we have it. We half way have it. I fought for it to > be all or nothing back then and I still think it is half done that we > don't have scalar type hinting but we have array/object/class type > hinting. Talk about inconsistency. > > So, can we switch the mundane conversation from "should we have type > hinting" to "why don't we have scalar type hinting if we have non-scalar > type hinting?" That is the real conversation. Type hinting is here. > It is not going anywhere. Let's finish the job. Yes. Atleast add a "scalar" type hint to differentiate from arrays and objects. A scalar type hint complies with PHP's way of not differentiating too much between strings, booleans, integers, and floats.