Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58034 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54853 invoked from network); 24 Feb 2012 22:11:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2012 22:11:29 -0000 Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=pass; 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:4157] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/5E-17132-F0B084F4 for ; Fri, 24 Feb 2012 17:11:27 -0500 Received: (qmail 41903 invoked by uid 98); 24 Feb 2012 22:11:28 -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.068188 secs); 24 Feb 2012 22:11:28 -0000 Received: from localhost (HELO www.l-i-e.com) (127.0.0.1) by localhost with SMTP; 24 Feb 2012 22:11:28 -0000 Received: from webmail (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Fri, 24 Feb 2012 16:11:28 -0600 Message-ID: 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: Fri, 24 Feb 2012 16:11:28 -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 Thu, February 23, 2012 1:21 pm, Kris Craig wrote: > 1. Is strict typing something that we should seriously consider > implementing at some point in the foreseeable future? No. If you want that, PHP is not the language for you, so just go use Java and JSP. I'm not being rude nor abusive: If anyone dislikes the way PHP works at such a fundamental layer, they just shouldn't use it. > 3. If toggleable, should this be defined at the config level, the > script > level, or both? God no. The insanity of dozens upon dozens of php.ini settings make portability difficult enough already. > of "sending" variables (JSON-encoded/decoded from a remote > hub that he also > wrote) with inconsistent types. For example, the "progress" > key could be a > multidimensional array, a string, NULL, a boolean, and in one > rare case > even an object pointer. But MOST of the time, it's an array, switch (true){ case is_array($input): break; case is_null($input): break; case is_boolean($input): break; case is_string($input): break; default: //There is no object pointer in PHP, so I dunno what you are talking about... break; } Was that really that tricky? > - It would probably be a fairly large undertaking to implement. Monstrously large. But feel free to try it yourself. :-) -- 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