From owner-cvs-all Mon Jul 23 5:12:34 2001 Delivered-To: cvs-all@freebsd.org Received: from assaris.sics.se (assaris.sics.se [193.10.66.234]) by hub.freebsd.org (Postfix) with ESMTP id 930AF37B405; Mon, 23 Jul 2001 05:12:27 -0700 (PDT) (envelope-from assar@assaris.sics.se) Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.9.3) id OAA38677; Mon, 23 Jul 2001 14:12:11 +0200 (CEST) (envelope-from assar) To: "Wes Peters" Cc: "Brian Somers" , , Subject: Re: cvs commit: src/lib/libutil ecalloc.c emalloc.3 emalloc.c erealloc.c estrdup.c Makefile libutil.h References: <3698025593.995835470@blabber> <5lwv508huv.fsf@assaris.sics.se> <001c01c1133a$f2b9ac50$24b244cc@blabber> From: Assar Westerlund Date: 23 Jul 2001 14:12:05 +0200 In-Reply-To: "Wes Peters"'s message of "Sun, 22 Jul 2001 23:47:24 -0600" Message-ID: <5litgjx2sq.fsf@assaris.sics.se> Lines: 20 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Wes Peters" writes: > Perhaps "libe"?? Sure > I agree with Alfred, I really don't like the idea of a program exiting > willy-nilly and feel this will encourage developers to do so. It is > marginally better than not testing return values at all, and hoping > for a core file, but only marginally so. The fact that it has been > done alot in existing code doesn't make it a good practice, just a > common one. Why would having a function doing something you can do in one line yourself encourage programmers that wouldn't otherwise err to do it here? Where's the limit between giving a useful amount of rope and too much of it? /assar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message