Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
SamReidHughes
on Sept 3, 2016
|
parent
|
context
|
favorite
| on:
Solutions to Integer Overflow
Swift has release-mode assertions, they're done with precondition().
dbaupp
on Sept 3, 2016
[–]
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.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: