Re: [VOTE] Scalar Type Hints
| From: | Andrea Faulds | Date: | Thu, 12 Feb 2015 00:13:50 +0000 |
| Subject: | Re: [VOTE] Scalar Type Hints | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82506@lists.php.net to get a copy of this message | ||
Hey Guilherme,
> On 11 Feb 2015, at 22:46, guilhermeblanco@gmail.com wrote:
>
> @Andrea: I spent around 2-3 hours speaking with Anthony and the other half talking to Jordi
> (Composer, Symfony).
> I still think a few things are required to be fully usable.
> 1- Exceptions RFC (outside of your scope, but making the code under strict type impossible to
> recover in a library)
Yeah, I agree that this is quite important. This could actually be fixed without exceptions (make
type hint error skip the function call?), but they’re a nicer way to do it (possibly simpler
within the engine?).
> 2- Lack of numeric scalar type
> There're others, but these ones are keys to make them fully usable.
A number (or numeric, or num, or some other name) type hint is something I plan to propose in a
future, follow-up RFC.
Thanks.
--
Andrea Faulds
http://ajf.me/