Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Swift has release-mode assertions, they're done with precondition().


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: