On 11.03.15 22:28, Bob Weinand wrote:
> after all, some people are not happy with the current proposals about scalar 
> types. So, they both still possibly may fail.
> 
> Thus, I'd like to come up with a fallback proposal in case both proposals 
> fail:
> 
> https://wiki.php.net/rfc/basic_scalar_types
> 
> It shouldn't prevent any future improvements and still give use all the 
> advantages of scalar types.

I'm not sure I'm seeing improvements over the other RFCs here ... or I
just missed something obvious. From a quick glance, this one here:

Type declration "string" and you pass in a "bool" type.

When in practive the conversion is like this:

$ php -r 'var_dump( (string) false ); var_dump( (string) true );'
string(0) ""
string(1) "1"

$ php -v
PHP 5.5.9-1ubuntu4.6 (cli) (built: Feb 13 2015 19:17:11)


- Markus

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

Reply via email to