[zeromq-dev] czmq and zalloc - handling OOM situations

Pieter Hintjens ph at imatix.com
Tue Sep 27 21:02:30 CEST 2011


On Tue, Sep 27, 2011 at 10:14 AM, Steven McCoy <steven.mccoy at miru.hk> wrote:

> Wasn't there a discussion on /. recently about this, Dijkstra's view tends
> to be taken out of context because it was in regard to Pascal which has an
> alternative method of breaking out of multiple loops.
> I count 160 instances of goto in OpenPGM, all for error cases.

Totally agreed. In OpenAMQ I count several hundred gotos, all in error
cases. It's a valid pattern IME, if it makes error handling simpler.

-Pieter



More information about the zeromq-dev mailing list