RPM Community Forums

Mailing List Message of <popt-devel>

Zero tolerance for errors (like malloc returning NULL)

From: R P Herrold <herrold@owlriver.com>
Date: Mon 14 Jun 2010 - 18:52:16 CEST
Message-ID: <alpine.LRH.2.00.1006141250081.30041@arj.bjyevire.pbz>
On Mon, 14 Jun 2010, Jeff Johnson wrote:

> The other approach is "Punish the moron. NOW!" LART 'em w a ruler and
> add assert's throughout the code on "can't happen" conditions.

A kinder, gentler person might say:
 	die loudly and early when an error is detected, rather
 	than guess after an unknown state transition
and remove the value judgments of 'punish' and 'moron'  ;)

you know -- refusenik style

-- Russ herrold
Received on Mon Jun 14 20:20:12 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.