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

Genuine question: doesn't such thing as "design by contract" make for the same bloat as checked exceptions in java?


DbC doesn't need to be dealt with at every level of the call chain if that's what you mean.

It may seem a bit verbose, but it usually expresses logic that would be in your program or in your tests anyway. Difference is, you will be doing it in a pretty terse and declarative manner. IMO, DbC is one of the coolest features of .NET 4.0.




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

Search: