TheFlyingFiddle:

When should i use enforce instead of assert?

Others have already told you most of the answer. Let me add that enforce() is heavier for the compiler, so don't put an enforce in a performance-critical path in your code.

Bye,
bearophile

Reply via email to