|
|
|
|
|
by rramadass
585 days ago
|
|
Finally, somebody said it! I am always bemused when people say they turn off contracts in production code. They don't understand the difference between contracts (a program state guarantee) and testing for special/error cases (must be handled explicitly). The excuse usually given is runtime performance which can be mitigated by using a subset from pre/post-conditions/invariants. |
|
The value is just too high to turn them off in production. Do you want bug free code? This is the only way I know how to do it.