Re: [RFC] Scalar Type Hints
| From: | Stanislav Malyshev | Date: | Sat, 03 Jan 2015 05:05:47 +0000 |
| Subject: | Re: [RFC] Scalar Type Hints | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80114@lists.php.net to get a copy of this message | ||
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.
--
Stas Malyshev
smalyshev@gmail.com