Improve Your Programming with Asserts
By Bruce D. Rosenblum
Dr. Dobb's Journal December 1997
(a) VERIFY((z = x * y) < kMaxValue); (b) z = x * y; ASSERT( z < kMaxValue, "z exceeds valid limit");
Example 4: Do not use verify. Instead of (a), your code should read like (b).
Copyright © 1997, Dr. Dobb's Journal