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.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to