Re:Solutions to Integer Overflow
by SamReidHughes on Saturday September 03, 2016 @04:49AM
(#12418376)
Swift has release-mode assertions, they're done with precondition().
[ Parent
| on HN ]
You are correct, but my point was implicitly that the default thing people reach for is assert, especially since the name precondition sounds like it is only ok to call at the start of a function.