Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
Description
precondition and preconditionFailure are not evaluated in unchecked builds ( -Ouncheck), but fatalErrors are.
we pretty much just use precondition/preconditionFailure everywhere. Swift std lib uses a mix of both.
we should further research this and come up with a rule of thumb as to whether to use fatalError or precondition in various places, and correct any existing violations.
blog posts that seem promising for learning more:
Attachments
Issue Links
- has to be done before
-
SWIFT-99 Prepare the driver for a 0.1.0 release
-
- Closed
-