Hacker News new | past | comments | ask | show | jobs | submit login

I don't understand your example. The API provider has to determine the contract and decide whether out-of-bounds crops are supported or not. If they are supported, then an out-of-bounds panic is a bug in the API. If they are not supported, then an out-of-bounds panic is a bug in the caller. In either case, the exception is unexpected and due to someone not following the contract.



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

Search: