Andrea Faulds wrote:

> From what I can see, the larger PHP community is generally in favour
> of strict typing, and among them, the previous RFC revision was
> received quite poorly. Myself, I might have been somewhat happy with
> just weak hints, but it would upset an awful lot of developers who
> would like some measure of strict typing. Developers who would most
> likely not use the new scalar type hints, because they weren’t
> strict. And if nobody uses them, why add them?
> 
> This revision hopes to possibly placate both weak and strict typing
> advocates. Of course, it also will lose some support in that it
> allows a choice. Plus, it gives the user choice, not the API
> designer, which I expect will be somewhat controversial. But I am
> hopeful.

Just a thought: what about having weak scalar type hints which throw
E_STRICT_TYPE if a value of another type is passed?

-- 
Christoph M. Becker

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

Reply via email to