Re:Announcing Rust 1.9
by nickm12 on Thursday May 26, 2016 @09:08PM
(#11783151)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.