Comment on Rust's Two Kinds of 'Assert' Make for Better CodeComments−davelee1ySwift calls these precondition() and assert(). Preconditions are enabled in release (and debug) builds, and asserts are enabled in debug builds only.
Comments
Swift calls these precondition() and assert(). Preconditions are enabled in release (and debug) builds, and asserts are enabled in debug builds only.