#055 – Assertions vs error-handling. When to use each.
A common mistake when first encountering assert() is to treat it as a general-purpose runtime check — a way to validate user input or to guard against missing files. It is none of those things. Assertions and error handling solve different problems,…