| ▲ | bawolff 2 hours ago | |
> The @ operator of php. In languages like Java, to silently catch all exceptions and do nothing with them requires at least some boiler plate. The @ operator doesn't get rid of exceptions it get rids of "warnings" which are basically built in log messages. It used to get a bad wrap for also silencing fatal errors, but it stopped doing that a while ago. The @ operator is something that should only be rarely used, but it is no way comparable to catching exceptions and doing nothing with them. There are sane uses for it. | ||