RE: [PHP-DEV] [RFC] Typed Properties
| From: | Zeev Suraski | Date: | Sat, 07 Jul 2018 21:12:33 +0000 |
| Subject: | RE: [PHP-DEV] [RFC] Typed Properties | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102640@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: php@golemon.com [mailto:php@golemon.com] On Behalf Of Sara
> Golemon
> Sent: Friday, July 6, 2018 10:36 PM
> To: Christoph M. Becker <cmbecker69@gmx.de>
> Cc: Nikita Popov <nikita.ppv@gmail.com>; stas@php.net; Björn Larsson
> <bjorn.x.larsson@telia.com>; Dan Ackroyd <danack@basereality.com>;
> Stanislav Malyshev <smalyshev@gmail.com>; Marco Pivetta
> <ocramius@gmail.com>; PHP internals <internals@lists.php.net>
> Subject: Re: [PHP-DEV] [RFC] Typed Properties
>
> Just want to be annoying about this since the currently scheduled fork date for
> PHP-7.3 is 11 days off.
> 1/ Do we have *ANY* objections to additional alpha(s) to accommodate Typed
> Props? (I would propose two additional alphas) 2/ Do we actually need to hold a
> formal vote? (If so, that vote should start *now*)
Sara,
I do see a couple of issues here.
First, it may be a personal thing, but I feel that the flexibility towards adding this is very
contrasty with the inflexibility shown as we headed towards the PHP 7.0 feature freeze -
inflexibility that resulted in a rushed (and IMHO wrong) decision regarding how to implement the
non-strict types. For the record - as I said back then - I think that the right way is to be
flexible - the dates are just dates, and are - in all honesty - not that important - it’s the
severe inconsistency that bothers me.
Secondly, and somewhat related - typed properties isn't a small feature. It is, in fact, a
pretty huge one. Making exceptions for a fairly minor feature or some extra deprecation is one
thing. Making an exception for something as fundamental as that feels wrong.
Even though Nikita's proposal and implementation look pretty solid, something as fundamental as
that should go through a substantial active discussion period (which didn't really happen here
as it wasn't clear whether this was headed for an exceptional 7.3 addition or not) - and
independently - should perhaps go hand-in-hand with fixing the flaws of the non-strict types -
something we can do in PHP 8. If we do the latter, then perhaps, just perhaps, we can introduce it
hand-in-hand with typed variables - and if we do, it will be sensible to do it at the same time and
not in a gradual rollout. Personally, I think even independently of typed variables, typed
properties feel like an 8.0 feature, not a 7.x feature.
Zeev