assert vs enforce.

Dicebot public at dicebot.lv
Fri Dec 20 15:14:51 PST 2013


Asserts are removed in release builds, enforces remain.

Asserts are used to verify internal sanity of application and 
never happen if it does not contain programming errors.

Enforces provide syntax sugar for routine error handling under 
normal workflow.


More information about the Digitalmars-d-learn mailing list