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

At risk of sounding harsh, that’s a huge failure in your modeling of invariants that should not be permitted in development.

Permitting it in development is why one ends up in the position of having to use an `expect()` in production code, because your API surfaces are wrong and can’t model your actual invariants.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: