Le 05/02/2015 21:14, Andrea Faulds a écrit :
At long last, I’m going to put the RFC to a vote. It’s been long enough - I
don’t think there needs to be, or will be, much further discussion.
I’d like to make sure that everyone voting understands the RFC fully. Please
read the RFC in full: the details are important. And if anyone has any
questions or uncertainties, please ask them before voting. I am very happy to
answer them.
I would urge everyone who wants type hints to vote for this RFC. It is not a
perfect solution, but there can be no perfect solution to this issue. However,
I think it is better than most of the alternatives suggested thus far - see the
rationale section, and previous discussions. Crucially, this RFC would keep PHP
a weakly-typed language, and not force either strict typing, nor weak typing,
on anyone who does not want it. It would allow the addition of type hints to
existing codebases. It would not create a situation where userland functions
are strict yet internal functions are not, because the strict mode affects
both. I’ve tested the implementation myself on my own code, and it worked well,
providing benefits other proposals would not have given (see my previous post
about my experiences).
Hi,
Just to let you know, I've written a post about this RFC on my blog,
trying to present what it brings to the table and to explain why I like it:
http://blog.pascal-martin.fr/post/in-favor-of-rfc-scalar-type-hints.html
Maybe another way of presenting things might help some people here to
decide whether or not they think this RFC is helpful.
Even if I've published this earlier today, I've written it between
Thursday and Friday, so it doesn't really take into account the new
ideas (new syntax propositions) that have been posted since.
Please note this is *my* personal opinion, and doesn't necessarily
reflect the opinion of any organization I am affiliated with.
Pascal.
--
Pascal MARTIN
http://blog.pascal-martin.fr
@pascal_martin
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php