> On Mar 17, 2015, at 18:04 , Leigh <lei...@gmail.com> wrote:
> 
> On 17 March 2015 at 08:37, Lester Caine <les...@lsces.co.uk> wrote:
> 
>> To help towards that end, can someone who understands what is wanted
>> from the weak type hint mode actually produce a summary of that as it is
>> very difficult to extract just what has now been agreed for that area of
>> type hinting. A base that can be used to review some of the other
>> discussions to put that to bed. Others might appreciate a similar
>> summary of the 'type_error' mode as well? As a base for the
>> documentation on the user manual updates?
> 
> 
> Not sure what is "difficult to extract"
> 
> https://wiki.php.net/rfc/scalar_type_hints_v5#behaviour_of_weak_type_checks
> 
> It's all right there...


That part answers what has been agreed (or rather accepted), but not who the
weak mode is for, and why.

Tried to sum that up last week when there was still discussions on this:
http://share.ez.no/blogs/core-development-team/php-7-sth-from-user-perspective

TL;DR;  weak mode is for api consumers, aka normal php users, while strict is
 for the actual target users of this features: api (library/framework) creators.

Post also argues for why Zeev's adjustments to weak sth handling should still
be done, as well as arguing for disallowing/fixing closure hint in strict mode.


ar
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to