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

If I remember well(), the idea between contracts is that they can be enabled at runtime, so very different from UT.

Also different from assertions in that 'class' invariants applies to every public method of the class.

: All I know about 'Design by Contract' I learned it in the (very good IMHO) book Object Oriented Software Construction by Bertrand Meyer (he made the Eiffel language).



You missed a backslash before your asterisks :)




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

Search: