Re: [RFC] [VOTE] Object typehint RFC
| From: | Michał Brzuchalski | Date: | Wed, 17 May 2017 17:14:20 +0000 |
| Subject: | Re: [RFC] [VOTE] Object typehint RFC | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-99084@lists.php.net to get a copy of this message | ||
2017-05-17 19:12 GMT+02:00 Dan Ackroyd <danack@basereality.com>:
> > We were thinking about enumerations
>
> Who do you mean 'we', kemosabe?
>
My apologies. I was a little hurry.
>
> > 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
>
--
regards / pozdrawiam,
--
Michał Brzuchalski
about.me/brzuchal
brzuchalski.com