
18 Jan
2011
18 Jan
'11
9:46 p.m.
From: Thomas Klimpel So I have to dig into the details of BOOST_ASSERT_IF_MSG and BOOST_ASSERT to understand the code.
Yes, but you do it only once and from then on it's easy. On the contrary, with the longish boolean expressions you have to stop and think each time you encounter them to understand the code. After all, this is what abstraction in programming is all about - to give labels to common patterns to simplify their implementation and comprehension. You have to learn the labels, but then it's much easier to grasp the code. Best regards, Robert