Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58765 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90895 invoked from network); 8 Mar 2012 06:10:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2012 06:10:00 -0000 Authentication-Results: pb1.pair.com header.from=vchkpw@developersdesk.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=vchkpw@developersdesk.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain developersdesk.com designates 204.228.229.4 as permitted sender) X-PHP-List-Original-Sender: vchkpw@developersdesk.com X-Host-Fingerprint: 204.228.229.4 lessa.developersdesk.com Received: from [204.228.229.4] ([204.228.229.4:36853] helo=mail.developersdesk.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/81-15180-63D485F4 for ; Thu, 08 Mar 2012 01:09:59 -0500 Received: (qmail 7640 invoked by uid 89); 8 Mar 2012 06:09:54 -0000 Received: from unknown (HELO ?10.1.1.5?) (vchkpw@developersdesk.com@67.61.98.111) by 0 with ESMTPA; 8 Mar 2012 06:09:54 -0000 Message-ID: <4F584D2D.7060606@developersdesk.com> Date: Wed, 07 Mar 2012 23:09:49 -0700 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: internals@lists.php.net References: <52.38.15021.3A1E65F4@pb1.pair.com> <4F570EBB.6030103@sugarcrm.com> <60744d7ea642fe03c7110502a3f4276a@mohiva.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Scalar Type Hinting From: vchkpw@developersdesk.com (Rick WIdmer) On 3/7/2012 8:48 PM, John Crenshaw wrote: > > In fact, nearly every input to PHP is a string. This is why PHP was > designed with some seriously robust type juggling on scalars. Any > typing proposal that wants to actually pass a vote is going to have > to allow appropriate implicit conversions from string to other > types. In fact, nearly every output from PHP is a string. Also why PHP was designed with some seriously robust type juggling on scalars. Any typing proposal that wants to actually pass a vote is going to have to allow appropriate implicit conversions to string from other types. $x = 1.8; $y = 2.3; list( $int, $fract ) = explode( '.', $x + $y );