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

In your example we have enough information to know that the addition is safe. In SPARK, if that were a function with a and b as arguments, for instance, and you don't know what's being passed in you make it a pre-condition. Then it moves the burden of proof to the caller to ensure that the call is safe.


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

Search: