From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3e1162e60604170828y1d46b4c6xc77064b88aa5c16@mail.gmail.com> Date: Mon, 17 Apr 2006 08:28:48 -0700 From: "David Leimbach" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Function args not checked In-Reply-To: <4443B191.1000703@asgaard.homelinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <40e76fd4ab1b047841b5829ed8015b0e@plan9.bell-labs.com> <4443B191.1000703@asgaard.homelinux.org> Topicbox-Message-UUID: 37e4a528-ead1-11e9-9d60-3106f5b1d025 On 4/17/06, "Nils O. Sel=E5sdal" wrote: > jmk@plan9.bell-labs.com wrote: > > As an aside, when you declare prototypes I find it is best to > > only give the types of the parameters and not declare identifiers, > > e.g. > > extern Elem mkoid(Ints *); // asn1.h > > rather than > > extern Elem mkoid(Ints *oid); // asn1.h > > This prevents confusion in environments where there is overuse > > of the pre-processor and the identifier gets substituted. > > Valid point,but I find the names quite helpful and of documentary > value - perhaps it's a defect of mine after reading too much > non-obvious code. > Well a lot of people fall back to header files for documentation purposes, and looking headers to figure out which of the "char *'s" is a source and which is a destination in some cases is nice. Nothing that can't be solved with good comments and man pages though.