Miod Vallat wrote:
> 
> >> fwiw i like names in prototypes, so i know what's going on. i know
> >> style says that, but i think the advice is obsolete.
> >
> > The compiler doesn't check that the argument names in the prototype
> > match those in the definition. The below program compiles without
> > warning.
> 
> This is not the point. The point is that putting argument names in
> public headers increases the risk of breaking third-party software
> thanks to the preprocessor.

I wasn't suggesting that that's the only reason. I was just pointing it
out in case someone suggested the guideline "only specify argument names
in file-local prototypes".

Reply via email to