Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57989 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54584 invoked from network); 23 Feb 2012 22:49:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Feb 2012 22:49:49 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:51856] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/8A-18992-A82C64F4 for ; Thu, 23 Feb 2012 17:49:48 -0500 Received: by wgbdq12 with SMTP id dq12so1453604wgb.11 for ; Thu, 23 Feb 2012 14:49:40 -0800 (PST) Received-SPF: pass (google.com: domain of kris.craig@gmail.com designates 10.180.80.71 as permitted sender) client-ip=10.180.80.71; Authentication-Results: mr.google.com; spf=pass (google.com: domain of kris.craig@gmail.com designates 10.180.80.71 as permitted sender) smtp.mail=kris.craig@gmail.com; dkim=pass header.i=kris.craig@gmail.com Received: from mr.google.com ([10.180.80.71]) by 10.180.80.71 with SMTP id p7mr671802wix.10.1330037380291 (num_hops = 1); Thu, 23 Feb 2012 14:49:40 -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 :cc:content-type; bh=8RhQA4+AWxMULwwz6rLCZ23/lOxRBhFtfPYXAVQ4L5E=; b=ZzbUHe02vD6cZgV8bDH7f9yZ+tHaCxxMccDp0WW2A2enxHqL82l0Mz4LnGPU06aeQ3 sdILnJmetUiDGxq7iv3DtlsnN9lucpqjkXFAOqAgpYwivYfYtgQetZkby7vWbs46FlUC Mf0TOR7x2jQ0QwRkzVotPddsMZR2W8iC8lGy8= MIME-Version: 1.0 Received: by 10.180.80.71 with SMTP id p7mr543046wix.10.1330037380174; Thu, 23 Feb 2012 14:49:40 -0800 (PST) Received: by 10.223.75.146 with HTTP; Thu, 23 Feb 2012 14:49:40 -0800 (PST) In-Reply-To: <4F46BE01.7030007@gmail.com> 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> <4F46BE01.7030007@gmail.com> Date: Thu, 23 Feb 2012 14:49:40 -0800 Message-ID: To: =?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?= Cc: John LeSueur , Stas Malyshev , Anthony Ferrara , Dmitri Snytkine , Sebastian Krebs , PHP internals list Content-Type: multipart/alternative; boundary=f46d0442887c9551ef04b9a97510 Subject: Re: [PHP-DEV] [RFC] Enum proposal (yet another) From: kris.craig@gmail.com (Kris Craig) --f46d0442887c9551ef04b9a97510 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yeah I agree, that was one of the things I listed under "disadvantages" lol= . I guess my question is: Does this constitute a prohibitive problem, or is it something that we can stomach? I mean, if you think about it, that's really what we're talking about anyway, right? After all, when you're writing any application, you're either going to be writing it with strict typing or you're going to be writing it with dynamic typing. The only difference here is that coders with either preference will both find PHP accommodating to their style. Similarly, a somewhat weaker argument could be made that, in PHP 5, you're either coding for procedural design or for OO design (technically you could do both, but I wouldn't wanna touch that codebase with a ten foot poll lol). The only difference here is that there would be a config setting to tell the interpreter which is which. --Kris 2012/2/23 =C1ngel Gonz=E1lez > On 23/02/12 22:59, Kris Craig wrote: > > Could you elaborate on this? So long as that setting cannot be changed > > midway through a script or its includes (i.e. the stack must be "all > > strict" or "all dynamic"), I can't think of any reason why that would n= ot > > be feasible. > > > > --Kris > I'm afraid that would create a split between code-for-config-A and > code-for-config-B. > > --f46d0442887c9551ef04b9a97510--