Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58162 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9774 invoked from network); 27 Feb 2012 17:29:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2012 17:29:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain l-i-e.com designates 67.139.134.202 as permitted sender) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:2752] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/80-40985-17DBB4F4 for ; Mon, 27 Feb 2012 12:29:22 -0500 Received: (qmail 24937 invoked by uid 98); 27 Feb 2012 17:29:20 -0000 Received: from localhost by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.05 ( Clear:RC:1(127.0.0.1):. Processed in 0.037909 secs); 27 Feb 2012 17:29:20 -0000 Received: from localhost (HELO www.l-i-e.com) (127.0.0.1) by localhost with SMTP; 27 Feb 2012 17:29:20 -0000 Received: from webmail (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Mon, 27 Feb 2012 11:29:20 -0600 Message-ID: <13e07c74166300ee0723b9db79edc02b.squirrel@www.l-i-e.com> In-Reply-To: References: <4F455C96.50706@gmail.com> <4F455E91.2060408@alliantinternet.com> <028001ccf1ab$0b200050$216000f0$@alliantinternet.com> <4F457517.7050901@alliantinternet.com> <028d01ccf230$91d79b00$b586d100$@alliantinternet.com> <4F4686C6.2040207@sugarcrm.com> Date: Mon, 27 Feb 2012 11:29:20 -0600 To: "PHP internals list" User-Agent: SquirrelMail/1.4.21 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] [RFC] Enum proposal (yet another) From: ceo@l-i-e.com ("Richard Lynch") On Fri, February 24, 2012 4:33 pm, Kris Craig wrote: > I hear that a lot; i.e. "If you want static typing, use Java." > > Unfortunately, that dismissive answer has not worked too well over the > years, has it? People are still clamoring for this, and I think > making > some very valid arguments that shouldn't be so derisively and > flippantly > brushed aside. I did not mean to be flippant, and was quite sincere, so allow me to restate it: This idea has been floated many times. Sometimes, it even came with initial patches to "prove" it could be done, and was feasible. Every time, eventually, non-trivial issues were raised by Core Devs that could simply NOT be addressed by the proposer, and they realized that changing PHP at such a fundamental level was, indeed, a non-starter. Or at least a non-finisher. :-) I only meant to suggest that if you seriously WANT these features in your language, switching to Java and JSP will give them to you, without the pain and suffering of a TON of work that history has shown will 99.9999% sure end in failure. I am, again, not being flippant, nor trying to claim that PHP is not an evolving language. I am, still, stating that the probability of it evolving in this direction, after it has been tried and failed so MANY times in the past, is incredibly unlikely. Examine the historical record, and the many proposed patches / changes / ideas, and I sincerely believe you will come to the same conclusion. If you really think you can pull it off, despite the historical evidence, I suggest you start to make a patch to do so, and find out just how much you are biting off to chew. In essence, you will effectively be re-writing Java / JSP or something similar, while trying to maintain compatibility with PHP and PHP internals that rely extensively on dynamic typing. To bowlderize Clemens (?) with regard to typing: "Strict is strict, and dynamic is dynamic, and never the twain shall meet." -- brain cancer update: http://richardlynch.blogspot.com/search/label/brain%20tumor Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE