From owner-freebsd-current Tue Mar 18 8: 5:17 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE83E37B401 for ; Tue, 18 Mar 2003 08:05:15 -0800 (PST) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2475943F3F for ; Tue, 18 Mar 2003 08:05:15 -0800 (PST) (envelope-from blitz@jmmr.no-ip.com) Received: from fwd07.sul.t-online.de by mailout03.sul.t-online.com with smtp id 18vJaS-0006IK-0I; Tue, 18 Mar 2003 17:05:12 +0100 Received: from jmmr.no-ip.com (520088592922-0001@[217.225.184.119]) by fmrl07.sul.t-online.com with esmtp id 18vJaG-1A1zIuC; Tue, 18 Mar 2003 17:05:00 +0100 Received: from jmmr.no-ip.com (blitz@localhost [127.0.0.1]) by jmmr.no-ip.com (8.12.8/8.12.8) with ESMTP id h2IG4dEQ028856 for ; Tue, 18 Mar 2003 17:04:44 +0100 (CET) (envelope-from blitz@jmmr.no-ip.com) Received: (from blitz@localhost) by jmmr.no-ip.com (8.12.8/8.12.8/Submit) id h2IG4bm8028855 for freebsd-current@FreeBSD.ORG; Tue, 18 Mar 2003 17:04:37 +0100 (CET) (envelope-from blitz) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030317222815.GB98963@blossom.cjclark.org> Date: Tue, 18 Mar 2003 17:04:35 +0100 (CET) From: der_julian@web.de To: freebsd-current@FreeBSD.ORG Subject: Re: Create linker.hints at boot X-Sender: 520088592922-0001@t-dialin.net Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 17-Mar-2003 Crist J. Clark wrote: >> >> if (!strcmp(a,b) { >> printf("same\n"); >> } > > I don't see what that code snipit has to do with the script (but I am > in the camp that would go ahead and waste the four bytes of source > code to write that as (strcmp(a, b) == 0)). The latter is clearly preferable (at least in my eyes), since I dislike the idea of zero being false etc. I think it depends largely on the programming background. Mine is based on Assembly language and (Common) LISP. So I have a hard time getting along with boolean expressions on integer results. :) The script example on the other hand is quite readable either way. Regards, Julian Stecklina To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message