Re: [RFC] [VOTE] Object typehint RFC
| From: | Dan Ackroyd | Date: | Wed, 17 May 2017 17:12:36 +0000 |
| Subject: | Re: [RFC] [VOTE] Object typehint RFC | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-99082@lists.php.net to get a copy of this message | ||
> We were thinking about enumerations
Who do you mean 'we', kemosabe?
> Especially when taking Java pattern
Java has been limited in its design as almost everything had to be an
object, whether or not it was a good fit for what was needed.
For me, objects are good at storing state, hiding implementation
details and allowing type substitution.....pretty much none of those
things apply to enums, and so make me think that forcing enums to be
objects isn't always the right thing to do.
cheers
Dan