Re: [RFC] Enum proposal : Without type hinting first ?
| From: | Samuel Deal | Date: | Fri, 24 Feb 2012 02:24:14 +0000 |
| Subject: | Re: [RFC] Enum proposal : Without type hinting first ? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-57994@lists.php.net to get a copy of this message | ||
Hi,
Discussion disperses a way I didn't expect.
As far as I know, next PHP release will be the 5.5, and would have a
strong compatibility
with 5.4.
So strict typing would not happened for 5.5 release.
If I understand correctly, at best, PHP 5.5 will have weak type hinting
(like
https://wiki.php.net/rfc/typecheckingstrictandweak#option_1_current_type_juggeling_rules_with_e_strict_on_data_loss
).
So what do you think about having enum implementation in PHP 5.5 without
type hiting ?
Or with weak one if finally PHP 5.5 is released with weak type hinting ?
Perhaps we shoulld discuss about what kind of type hinting we want for 5.5
and 6.0 in separated threads ?
Regards
--
Samuel DEAL
samuel.deal@gmail.com