Re: [RFC] Scalar Type Hinting With Casts (re-opening)

From: Date: Mon, 14 Jul 2014 13:29:21 +0000
Subject: Re: [RFC] Scalar Type Hinting With Casts (re-opening)
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-75451@lists.php.net to get a copy of this message
On 14 Jul 2014, at 14:28, Andrea Faulds <ajf@ajf.me> wrote: > > On 14 Jul 2014, at 14:12, Alexey Zakhlestin <indeyets@gmail.com> wrote: > >> I don’t think that "scalar casts” should do any additional error-catching. they >> target a very different usecase. >> It shouldn’t guarantee correctness of the whole program. It should guarantee that >> variable types are fixed inside of function. > > That is exactly what is being proposed though. My bad, I meant “that is not what is being proposed”. -- Andrea Faulds http://ajf.me/

« previous php.internals (#75451) next »