I notice in my own code (and in some professional code, eg. the database toolbox) that it's frequently convenient to use a try/catch block that doesn't make use of the resulting MException object.
For example, if I want to try some "dangerous" statement (say, writing to an database with an unknown connection) but am willing to "just go along" if it fails, I would write something like:
try cursor = exec(risky_connection, sql)catch me %#ok
end
Given that m-lint complains about this by default, I presume there's a better construct to handle it… So what is it?
Best Answer