Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57939 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83748 invoked from network); 22 Feb 2012 08:50:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Feb 2012 08:50:38 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@googlemail.com X-Host-Fingerprint: 209.85.215.42 mail-lpp01m010-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:52189] helo=mail-lpp01m010-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C7/41-09421-D5CA44F4 for ; Wed, 22 Feb 2012 03:50:37 -0500 Received: by lagk11 with SMTP id k11so1090561lag.29 for ; Wed, 22 Feb 2012 00:50:33 -0800 (PST) Received-SPF: pass (google.com: domain of nikita.ppv@googlemail.com designates 10.152.123.68 as permitted sender) client-ip=10.152.123.68; Authentication-Results: mr.google.com; spf=pass (google.com: domain of nikita.ppv@googlemail.com designates 10.152.123.68 as permitted sender) smtp.mail=nikita.ppv@googlemail.com; dkim=pass header.i=nikita.ppv@googlemail.com Received: from mr.google.com ([10.152.123.68]) by 10.152.123.68 with SMTP id ly4mr21800145lab.13.1329900633390 (num_hops = 1); Wed, 22 Feb 2012 00:50:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=AlA2rY4h8gOW5FJOQG47ZREZo3r3CFeYw/OmX7Z33zo=; b=k+RNla0bdYmz9dc28oXLQPPxZRejU8lVwa60I6O9r72HgFYOPGW2d74hY0tGie+Iea 9XSmIJUAAGdgiLUmkEKMAGC3t15NrDQORzp1hnIrmZgd5UElQUS3N3PPrIcoHgaaG+tl GLqDi3F2qA/GpseOnPNFgIGk2RNJlnqEKw51o= MIME-Version: 1.0 Received: by 10.152.123.68 with SMTP id ly4mr18291002lab.13.1329900633313; Wed, 22 Feb 2012 00:50:33 -0800 (PST) Received: by 10.152.127.68 with HTTP; Wed, 22 Feb 2012 00:50:33 -0800 (PST) In-Reply-To: References: Date: Wed, 22 Feb 2012 09:50:33 +0100 Message-ID: To: Samuel Deal Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Enum proposal (yet another) From: nikita.ppv@googlemail.com (Nikita Popov) What about SplEnum? (http://php.net/splenum) It's part of the SPL types extension, but it could probably be also moved to core. Nikita On Wed, Feb 22, 2012 at 5:45 AM, Samuel Deal wrote: > Hi all, > > I really missed enums in PHP, > So after reading I tryed to synthetise the various views. > > You can find a draft here : > https://github.com/SamNrique/php-src/wiki/RFC-draft > (I can't write on the wiki, and perhaps it's better to finish the > discussion first) > > There's an implementation with this draft. > I'd love to have feedbacks because it's my first php-core hack. > > Thanks > -- > Samuel D=E9al > samuel.deal@gmail.com