Re: [RFC] Basic Scalar Types

From: Date: Thu, 12 Mar 2015 09:09:55 +0000
Subject: Re: [RFC] Basic Scalar Types
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-84617@lists.php.net to get a copy of this message
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

« previous php.internals (#84617) next »