On Tue, May 01, 2007 at 10:56:34AM -0400, Devon H. O'Dell wrote: > > I've seen more than my fair share of tf = !!value; out there, which is > just awful to read.
Yes it is, but in the 25 years that I have been programming in C, I've seen many atrocities. What I haven't seen is a compelling need for a boolean type. As Brian and Dennis say in the preface to K&R, C is a small language. That smallness makes it possible for me to maintain a mental model of what machine code the compiler will generate for a given C statement and to keep essentially the whole language in my head. This, in turn, allows me to write better code. Notice how one can't make similar statements about, say, C++ (at least I can't). The last thing C needs is a bunch of cruft to satisfy language purists or to save the incompetent from themselves. jcs P.S. Sorry Russ. I'll stop now.
