[zeromq-dev] Newbie Bait Request: Debug "Warning" mechanism.

Pieter Hintjens ph at imatix.com
Tue Aug 17 17:46:10 CEST 2010


On Tue, Aug 17, 2010 at 5:02 PM, Matt Weinstein
<matt_weinstein at yahoo.com> wrote:

> An alternative to the setsockopt proposal: another RECV flag ZMQ_RECVERR
> that forces error returns vs. asserts.

Asserts and errors are semantically different, and IMO if you mix the
two like that you create fuzzy boundaries between faults that must not
be allowed in living code, and faults that are allowed.  In biological
terms that would be called "cancer" though I'm not sure the analogy
works fully.

-
Pieter Hintjens
iMatix - www.imatix.com



More information about the zeromq-dev mailing list