Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!ico!ism780c!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: consistency in declaration Message-ID: <13752@haddock.ima.isc.com> Date: 19 Jun 89 19:02:33 GMT References: <64@BLEKUL11.BITNET> <13732@haddock.ima.isc.com> <14544@watdragon.waterloo.edu> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 13 In article <14544@watdragon.waterloo.edu> jyegiguere@lion.waterloo.edu (Eric Giguere) writes: >>>[compiler refuses to accept a prototype with half-named args:] >>> void foo(int , int y); >Personally I prefer the approach that a prototype either declares identifiers >for all the parameters or leaves them all out. I really can't see any reason >for the inconsistent notation. I agree, but personal preferences shouldn't be strictly enforced by the compiler. My recommendation is to downgrade it to a warning. (The pANS imposes no constraints on warnings, though personally I feel that everything questionable should have an OPTIONAL warning attached to it.) Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint