How to use precondition and assert in Swift
Issue #553
Read Swift asserts - the missing manual
1 | debug release release |
And from Interesting discussions on Swift Evolution
– assert: checking your own code for internal errors
– precondition: for checking that your clients have given you valid arguments.