Re: [RFC] Scalar Type Hints

From: Date: Sat, 03 Jan 2015 05:33:32 +0000
Subject: Re: [RFC] Scalar Type Hints
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-80115@lists.php.net to get a copy of this message
On Fri, Jan 2, 2015 at 9:05 PM, Stanislav Malyshev <smalyshev@gmail.com> wrote: > Hi! > >> I am also not a fan of errors, exception, at least for methods, make >> much more sense. I know it is relatively easy to handle errors as >> exception but still, let do it right now. > > Then we need to convert all parameter mismatch errors (or at least all > fatal ones) to exceptions. Which I don't think makes a lot of sense to > put in the same RFC but in any case it should work the same way over all > the engine. Otherwise handling it would be a nightmare. I am not sure about that. Parameters handling is one specific case, userland parameter handling even more. It could be a good move to do that as a 1st step, with this RFC. -- Pierre @pierrejoye | http://www.libgd.org

« previous php.internals (#80115) next »