3 ms·
Asserts have run-time cost. What you need is to ensure ensure those preconditions are met in the first place, statically, by formal methods for example.
by andrepd 6y ago
Asserts have run-time cost. What you need is to ensure ensure those preconditions are met in the first place, statically, by formal methods for example.
- throwaway_pdp09 6y agoWhich is ideal, but generally beyond reach for now. So assertions it is.