Re: [VOTE][RFC] Scalar Type Hinting with Cast

From: Date: Sun, 14 Sep 2014 20:24:11 +0000
Subject: Re: [VOTE][RFC] Scalar Type Hinting with Cast
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-77199@lists.php.net to get a copy of this message
On 14 Sep 2014, at 21:22, Derick Rethans <derick@php.net> 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/

« previous php.internals (#77199) next »