11
ltlian
5y

"If you don't return something in the catch block it will crash"

Isn't it interesting how a sentence can be true yet so infuriatingly wrong.

Comments
  • 0
    Finally() isnt supported in all languages ? No ?
  • 1
    @devapsarl This was in terms of swallowing the exception and returning some default value.

    There are legitimate, specific circumstances for it, but I've had PRs where someone wants to refactor a bunch of throws on a fairly low level into returning defaults (or worse yet, fallback values) because they got exceptions when passing in unhandled null parameters.
  • 0
    @ltlian this is like giving a person heavy dose of pain releivers and tell him to go to doctor answering the question "where are u aching"

    Maybe a shitty métaphore. But silencing errors may turn "future" debugging into impossible mission
Add Comment