RE: [PHP-DEV] Re: Scalar Type Declaration Syntax Weirdness
| From: | Anatol Belski | Date: | Wed, 25 Nov 2015 10:11:00 +0000 |
| Subject: | RE: [PHP-DEV] Re: Scalar Type Declaration Syntax Weirdness | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-89401@lists.php.net to get a copy of this message | ||
Hi Stas,
> -----Original Message-----
> From: Stanislav Malyshev [mailto:smalyshev@gmail.com]
> Sent: Tuesday, November 24, 2015 6:28 PM
> To: Andrea Faulds <ajf@ajf.me>; internals@lists.php.net
> Subject: Re: [PHP-DEV] Re: Scalar Type Declaration Syntax Weirdness
>
> Hi!
>
> > It can't wait for 7.0.1, because banning this would be a
> > backwards-compatibility break with 7.0.0. We have to fix it in 7.0.0
> > or not fix it ever.
>
> In theory, yes. In practice, if somebody starts using 7.0.0 and immediately jumps
> to using \int, I don't feel too bad for breaking that code. We can put a note in
> release notes for this is needed. But the risk of changing syntax parts on the
> brink of GA IMHO is much larger than the risk of somebody using \int in 7.0.0
> and getting breakage in 7.0.1. Especially if it's clearly described as a bug we
> intend to fix.
>
that's my point as well. There is a clear documentation about type hints, usage of an
undocumented way is out of scope of BC. Using \int means there were a "class int{}" which
is prohibited. Of course it is a bug after all, which will be addressed.
Regards
Anatol