Welcome Guest, Not a member yet? Register   Sign In
Is this ok? Suppressing warnings with the @ symbol
#9

Avoiding the suppression operator usually means that, in order to prevent errors, you've otherwise checked for all possible error conditions and that in turn means good code, hence why it is the best practice.

There are a few cases where it's unavoidable (iconv() on user-input comes to mind) or not worth the effort, and this here may well be one of the latter.

You should still try to avoid error suppression in general though.
Reply


Messages In This Thread
RE: Is this ok? Suppressing warnings with the @ symbol - by Narf - 08-10-2016, 02:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB