Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58297 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92760 invoked from network); 28 Feb 2012 22:48:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2012 22:48:23 -0000 Authentication-Results: pb1.pair.com header.from=dmgx.michael@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmgx.michael@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: dmgx.michael@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:55259] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/0C-36673-5B95D4F4 for ; Tue, 28 Feb 2012 17:48:22 -0500 Received: by wibhj13 with SMTP id hj13so261962wib.29 for ; Tue, 28 Feb 2012 14:48:19 -0800 (PST) Received-SPF: pass (google.com: domain of dmgx.michael@gmail.com designates 10.180.107.68 as permitted sender) client-ip=10.180.107.68; Authentication-Results: mr.google.com; spf=pass (google.com: domain of dmgx.michael@gmail.com designates 10.180.107.68 as permitted sender) smtp.mail=dmgx.michael@gmail.com; dkim=pass header.i=dmgx.michael@gmail.com Received: from mr.google.com ([10.180.107.68]) by 10.180.107.68 with SMTP id ha4mr43161381wib.9.1330469299077 (num_hops = 1); Tue, 28 Feb 2012 14:48:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=l2foiiTwpNev7VW90WY85LE/vDBA7VoF+UCQ7V7BdOQ=; b=Whs75TjsmyotqihJ/omHcuO0NSgDcaQdhkN45qY2JPYDk9IX2iHe8OmrOndIxD+O3n lvGLrsEPDzjesMtrI7KxJx1kU9XxSyQC8ewvpa6vG4kj3n2U2A9zH5a8gGziAFhubNVF 18Fwe/8sVXhyHHGsdl9DzMIrEoV4lJk0sQBYw= MIME-Version: 1.0 Received: by 10.180.107.68 with SMTP id ha4mr34272095wib.9.1330469298917; Tue, 28 Feb 2012 14:48:18 -0800 (PST) Received: by 10.216.30.149 with HTTP; Tue, 28 Feb 2012 14:48:18 -0800 (PST) In-Reply-To: References: <1330357150.2159.30.camel@guybrush> <4F4C1324.2040905@gmail.com> <4ac6cd225b889d455efca20795d24cb0.squirrel@www.l-i-e.com> Date: Tue, 28 Feb 2012 17:48:18 -0500 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Scalar type hinting From: dmgx.michael@gmail.com (Michael Morris) I don't think the strong/weak stuff is necessary at all. Either a programmer cares about datatype or they don't and the vast, vast majority won't. Declaring a variable's datatype should have the effect of locking that variable's datatype down and not allowing it to switch types with the sole exception of NULL. Trying to declare a degree of strength to the typing is severe overkill. I recognize that I suggested this in my first proposal, but at this point I'm opposed to it. On Tue, Feb 28, 2012 at 5:39 PM, Kris Craig wrote: > I think that's a bit of a stretch, to say the least. =A0The same argument > could be made that PHP 5's introduction of stronger OO implementation wou= ld > have scared this person away. =A0The fact is, we don't know that either o= f > them would have. =A0For one thing, I doubt he monitored the PHP Internals > list; if he had, that in and of itself would have been enough to scare hi= m > away lol. =A0If strict typing was the norm, then yeah it probably would h= ave > scared him off. =A0But adding optional typing, which is what we've been > discussing here? =A0I seriously doubt it. > > --Kris > > > On Tue, Feb 28, 2012 at 2:26 PM, Richard Lynch wrote: > >> On Tue, February 28, 2012 3:31 am, Arvids Godjuks wrote: >> > I really liked what the O'Raily wrote here: >> > >> http://www.oreillynet.com/ruby/blog/2007/09/7_reasons_i_switched_back_to= _p_1.html >> >> Please note that the author was a bass player in a band wanting to >> sell CDs online when the five (5) choices were the same >> brick-and-mortar major label distributors who wouldn't take his CD as >> he wasn't on a major label. >> >> He examined the options, and PHP was the only one that didn't make his >> head spin. >> >> His act of creating a single page to sell his CD online went viral, >> and he accidentally built a multi-million dollar company because of >> that. >> >> Since he'd never set out to make the money, just to help his friends >> (and they told 2 friends, and they told 2 friends...) he always >> tracked success not by not, nor gross, but by dollars paid out to >> artists[1] >> >> He eventually sold the company to a trust fund that goes to charity >> when he dies, and lives very comfortably off the interest, since he >> lost interest in running the company when it just got too routine.[2] >> >> If he had seen this strict/weak/strong stuff in PHP, that online CD >> store for the indie artists would probably not have existed for quite >> a long time, if ever. >> >> He's actually been online a long time, and is worth learning from, >> even if he never actually became a Real Programmer (tm), in his own >> words. >> >> PS >> You can find many conversations between him and me on the old, old, >> old PHP list before the split of the lists into -general etc. >> >> [1] http://www.cdbaby.com/About >> [2] http://sivers.org/trust >> >> -- >> brain cancer update: >> http://richardlynch.blogspot.com/search/label/brain%20tumor >> Donate: >> >> https://www.paypal.com/cgi-bin/webscr?cmd=3D_s-xclick&hosted_button_id= =3DFS9NLTNEEKWBE >> >> >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >>