Jim wrote: > I have to agree. > > assert(1 + 1 < 3); > > will always be easier to read than any: > > assertPred!"a < b"(1 + 1, 3); > > Why not just keep it simple and straight forward? Anything expressed in the > latter form can be expressed in the former.
True, but on the other hand:
Assertion failed!
will always be less informative than any:
Assertion failed: 3 < 2!
It all depends on whether your priority is code or message
readability. I would tend to give priority to the error message.
Jerome
--
mailto:[email protected]
http://jeberger.free.fr
Jabber: [email protected]
signature.asc
Description: OpenPGP digital signature
