This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [using gcc book] ch10.11 Certain Changes We Don't Want to Make


Chris Devers <cdevers@pobox.com> writes:

>     C contains many standard functions that return a value that most
>     programs choose to ignore.  One obvious example is printf.  Warning
>     about this practice only leads the defensive programmer to clutter
>     programs with dozens of casts to void.  Such casts are required so
>     frequently that they become visual noise.  Writing those casts
>     becomes so automatic that they no longer convey useful information
>     about the intentions of the programmer.

> I think this latter version is the clearest yet. Thoughts? This seems
> close enough to the mark that I'll paste it into the file, and can revise
> it further if anyone points out an error or misphrasing of mine.

Sounds great to me.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]