Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88350 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1860 invoked from network); 18 Sep 2015 18:31:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2015 18:31:01 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.176 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.176 mail-wi0-f176.google.com Received: from [209.85.212.176] ([209.85.212.176:35977] helo=mail-wi0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/18-60254-4685CF55 for ; Fri, 18 Sep 2015 14:31:01 -0400 Received: by wicgb1 with SMTP id gb1so43367052wic.1 for ; Fri, 18 Sep 2015 11:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=jyZ3iYyc1QDH7N3iSVktI52+l7mBfUlBXghuL8OGAAc=; b=gKE343LIx/E6bVs3PfenAJvHHwHNTDCIlQT63EDQyAVlQwC3OzD0qz7TpQSxl1JmHc Xqd8owALaWbF/vmx7CQDx8prYtis/kj6CAyRhDHjxO/4JB3mCDUgj+utve+McQjZ1Ueh QPyKiINSpepbEdQSC33qKU82j4LI6hCj+yRLtr3fzNUtIwwL4TlKRXOXbQ+cBQhbPQDE d5qCHc5Z3KbGALlWDt1g8DZDzmxXecADojP8NmlYIqcsEwA1wKxelo6/cew4rMB4JBB3 R+Ksl089QUl1g4Y4TovRtS6Y1jJho7LnafmOzenNBXgjuUy7qBUE68gk/GdzGCYpLKv4 ZXzQ== X-Received: by 10.180.108.177 with SMTP id hl17mr39124010wib.45.1442601057370; Fri, 18 Sep 2015 11:30:57 -0700 (PDT) Received: from [192.168.0.127] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id kb9sm10092863wjb.49.2015.09.18.11.30.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Sep 2015 11:30:56 -0700 (PDT) To: Jefferson Gonzalez , Levi Morrison References: <55FB4791.4040807@gmail.com> <55FC34E6.8020009@gmail.com> <55FC476B.6020201@gmail.com> <55FC570A.7010802@gmail.com> Cc: internals Message-ID: <55FC5826.2050306@gmail.com> Date: Fri, 18 Sep 2015 19:29:58 +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: <55FC570A.7010802@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Let's discuss enums! From: rowan.collins@gmail.com (Rowan Collins) Jefferson Gonzalez wrote on 18/09/2015 19:25: > I also believe the rfc should include type hinting of enums as has > been mentioned on this discussion. That would make enumerations more > useful and the rfc more complete. It already mentions that: > Enums are strongly typed and can be used as parameter or return types. As I understand it, this actually comes for free the way it's implemented, because Enums are actually a type of object, and the enum declaration is effectively a class.