RE: [PHP-DEV] Scalar Type Hints v0.4
| From: | François Laupretre | Date: | Wed, 18 Feb 2015 12:33:12 +0000 |
| Subject: | RE: [PHP-DEV] Scalar Type Hints v0.4 | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83056@lists.php.net to get a copy of this message | ||
Hi,
>
> Octal is something that can often be miss converted since it IS the same
> as an integer with only a '0' in front in PHP. But that is not something
> that can be fixed with the current proposals?
What do you propose ? Considering leading zero as octal indicator is not an option, IMO. If you have
another way, why not.
> Again we have to ensure
> that the pre-processing takes care of the problem and how would static
> analysis even know there was a problem? A type hint following the SQL
> standards.
Please give conversion rules and supported syntax for the 'SQL' type you have in mind.
> would be more helpful than the javascript approach of giving
> an error in strict mode.
Regards
François