Re: Deprecation of the Error Control Operator (@ symbol)
| From: | Rowan Collins | Date: | Fri, 08 Jan 2016 18:36:49 +0000 |
| Subject: | Re: Deprecation of the Error Control Operator (@ symbol) | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-90386@lists.php.net to get a copy of this message | ||
Ryan Pallas wrote on 08/01/2016 18:29:
I agree with Dan on this one. Trying to use an invalid type as a key should produce something. Your argument that its garbage and you don't care may be valid for a specific use case, but it may also be a bug in another caseBut that has nothing to do with using exceptions rather than some other mechanism. I am completely in favour of making warnings better categorised, and easier to handle, but exceptions are not the way to do that. It's a case of seeing nails because you're holding a hammer - exceptions exist, so people want to use them everywhere. Regards, -- Rowan Collins [IMSoP]