Re: What do we need strict scalar type hints for?
From: Andrea Faulds Date: Mon, 02 Feb 2015 20:46:13 +0000 Subject: Re: What do we need strict scalar type hints for? References: 1 2 3 4 5 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
Hi Dmitry, > On 2 Feb 2015, at 20:43, Dmitry Stogov <[email protected]> wrote: > > I don't think we will implement strict semantic for operators. > It's not going to be PHP anymore.... > $s = (string)$a . (string)$b; There’s no need either: operators always produce a specific type (or one of a set of types) so it doesn’t really cause a problem. Though there are some improvements we could make. It’d be nice if ‘’ + 1 produced a notice, that’s caught me out several times before. Thanks. -- Andrea Faulds http://ajf.me/
Thread (78 messages)
- AW: [PHP-DEV] What do we need strict scalar type hints for?
- Re: What do we need strict scalar type hints for?
- AW: [PHP-DEV] What do we need strict scalar type hints for?
- Re: AW: [PHP-DEV] What do we need strict scalar type hints for?
- Re: What do we need strict scalar type hints for?
- Re: What do we need strict scalar type hints for?
« previous | php.internals (#81651) | next » |
---|