From owner-freebsd-hackers Sat Feb 15 10:54:51 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA09007 for hackers-outgoing; Sat, 15 Feb 1997 10:54:51 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id KAA09000 for ; Sat, 15 Feb 1997 10:54:47 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA03759; Sat, 15 Feb 1997 11:53:23 -0700 From: Terry Lambert Message-Id: <199702151853.LAA03759@phaeton.artisoft.com> Subject: Re: NULL as ((void*)0) (was Re: strlen() question) To: bde@zeta.org.au (Bruce Evans) Date: Sat, 15 Feb 1997 11:53:23 -0700 (MST) Cc: bde@zeta.org.au, davidn@labs.usn.blaze.net.au, hackers@FreeBSD.ORG, j@uriah.heep.sax.de In-Reply-To: <199702150634.RAA07576@godzilla.zeta.org.au> from "Bruce Evans" at Feb 15, 97 05:34:19 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I only insist on K&R compatibility for consistency. BTW, the > Lite2 merge would have been much easier if we had followed the > style guide for new code and not changed the style of old code > just to fix warnings. Changing `if (error = barf()) ...' to > `error = barf;if (error) ...' caused lots of conflicts > and usually got undone when barf() involves vfs stuff. The conversion from the use of assignment expression lvalues is an intentional style issue?!?! Does style also have us avoiding the comma operator, the question-mark operator, bit fields, and similar things, all of which might also be confusing to the total novice C programmer?!?! What about partial agregate initilization? I see it all over the kernel... and what about dangling commas in lists of enumerated types? The implication is that there exists a manifest zero... Ugh. Next we will avoid function calls because they are confusing to Pascal programmers who expect them to be hierarchically scoped... Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.