Re: [PHP-DEV] [VOTE][RFC] Scalar Type Hinting with Cast
[email protected] (Andrea Faulds)
| Newsgroups | php.internals |
|---|---|
| Message-ID | <[email protected]> |
On 14 Sep 2014, at 21:22, Derick Rethans <[email protected]> wrote: > But this "compromise" introduces yet another set of casting rules. And > that is why will advocate and vote against this. > > We can either have casting where: > > function bar(int $foo) { } > bar("42"); > > Means the same as: > > function bar($foo) { } > bar((int) "42”); > Is anyone really advocating for that? I thought people wanted zpp-style casting. -- Andrea Faulds http://ajf.me/