Re: Let's discuss enums!

From: Date: Fri, 18 Sep 2015 18:29:58 +0000
Subject: Re: Let's discuss enums!
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-88350@lists.php.net to get a copy of this message
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.

« previous php.internals (#88350) next »