A coworker has added the assert command a few times within our libraries in places where I would have used an if statement and thrown an exception. (I had never even heard o
Assert is not a substitute for normal flow control like if or exceptions, because it is only meant to be used for debugging during development.
if