On 2014-10-29 22:22, Walter Bright wrote:

Assumptions are not guarantees.

In any case, if the programmer knows than assert error is restricted to
a particular domain, and is recoverable, and wants to recover from it,
use enforce(), not assert().

I really don't like "enforce". It encourage the use of plain Exception instead of a subclass.

--
/Jacob Carlborg

Reply via email to