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

Not really, contracts can't send in invalid data to see what happens and ensure the proper actions are taken.

Contracts don't prevent the need for tests, they simply augment them. Contracts only state assumptions about how code should behave, but they don't make sure those assumptions are correct, only tests can do that.




Upvoted you after some baffoon voted you down for no apparent reason.

Seems like downvoting because of disagreement is getting more and more popular these days.




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

Search: