Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88342 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87575 invoked from network); 18 Sep 2015 17:19:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2015 17:19:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.175 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.175 mail-wi0-f175.google.com Received: from [209.85.212.175] ([209.85.212.175:38022] helo=mail-wi0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/35-60254-9A74CF55 for ; Fri, 18 Sep 2015 13:19:38 -0400 Received: by wiclk2 with SMTP id lk2so39411597wic.1 for ; Fri, 18 Sep 2015 10:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=Nig7dIE/AdrZmF8txcg2lR4RAnvQ5oI38fFqqiht8ek=; b=09+ElTnsJpuPmpAtRzQJP0IaXVMH8uptf25iWdObj28A7TOrShAL/2OYeyMqXW/iRZ RpHiRKZ0Req389WpmTwGrPyBY7HNTYXfq2WxX1h7d77r4M0ixAePrFbP7++vo9bujiUm U6OuG00D8oF2uX/owupxse903B1T5dpct1CGy8lnrykZiHCFdoNPFVnzKBs+iocYeH2H wTaL2/6XFaCeYukpDq33fGEBQGf+ErEabYYY3ufk6AK+0m1S9ZCaYvDGsqD9ezrhqtbm Iklw+5Z2rF/rla+7dWa0Hu+qkxFz8kryUc1dNTnjNQkGYhZo/1fcJLgdX50chy0ZFTfq qfHw== X-Received: by 10.180.35.163 with SMTP id i3mr41795641wij.55.1442596774267; Fri, 18 Sep 2015 10:19:34 -0700 (PDT) Received: from [192.168.0.127] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id p8sm9840542wjr.39.2015.09.18.10.19.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Sep 2015 10:19:33 -0700 (PDT) To: Levi Morrison , internals References: <55FB4791.4040807@gmail.com> <55FC34E6.8020009@gmail.com> Message-ID: <55FC476B.6020201@gmail.com> Date: Fri, 18 Sep 2015 18:18:35 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Let's discuss enums! From: rowan.collins@gmail.com (Rowan Collins) Levi Morrison wrote on 18/09/2015 18:04: > Anything else is trying to add value in some way – in your case you > are adding a primitive value that the language will automatically map > for you. I'm not saying that is a bad thing but I hope you can at > least recognize that it is an addition and not the bare minimum. The > RFC I am planning on proposing will have only the bare minimum because > it's the least controversial part and is the most useful. The other > stuff we can debate about later. That's why I was kind of surprised to see ordinal() in there in the draft - it's an additional field on each member, which in many cases has no relationship to the value being represented. Also, apologies for accidentally starting the discussion of your draft "too early", I wasn't aware that you were working on it. I was trying to offer something productive to the language, since I've been spending a lot of time talking down new features lately. :) Regards, -- Rowan Collins [IMSoP]