Depends on what it's code for. For aircraft software, "just letting it crash" can be unpleasantly literal.
For aircraft software neither approach is acceptable. You can't have crashes, you can't have exceptions, you can't have error codes, you can't have any other way to signal that something went wrong. Instead, the thing has to not go wrong.
For aircraft software neither approach is acceptable. You can't have crashes, you can't have exceptions, you can't have error codes, you can't have any other way to signal that something went wrong. Instead, the thing has to not go wrong.