I would love to have compiler enforced contracts. However I'm not sure how to make that happen or even if it is technically possible. The current contracts proposal is a step in the right direction, but just barely a step and I'm not sure if it can go far enough.
Until then I avoid adding undefined behavior to my code for good reasons.
Until then I avoid adding undefined behavior to my code for good reasons.