断言只可用于捕获那些发生在受控事件序列中的编程错误。
Assert should only be used to trap for programming errors that can occur within a controlled sequence of events.
首先,不是所有受控异常都是不好的;它们可用于事件通知或根据某些条件重定向处理。
First of all, not all checked exceptions are bad; they might be used for event notification or to redirect processing based on certain conditions.
历史是一个不受控制的试验,我们不能确切地知道如果没有最高法院的判决(或其它与之有关的任何事件)将会发生什么。
History is not a controlled experiment and so we cannot know exactly what would have happened absent a particular Supreme Court decision (or any other event for that matter).
应用推荐