From: Brian G. <bri...@ea...> - 2006-11-06 05:04:59
|
On Nov 5, 2006, at 8:00 PM, Larry McVoy wrote: >> I think an ounce of prevention is worth it here since finding this, >> if it's a bug, is very difficult, even for a pro. > > Really? So who amongst us willing to pony up with 10 real world > examples > where this was an issue? > > I'm not saying it isn't but we're a 95% pure C shop and we should > be seeing > this all the time but we don't. Are we that much better than average? Do you compile your C code with -Wall? If you don't, why not? Do you have a requirement to remove all warnings before shipping? What do you do with x.c:4: warning: suggest parentheses around assignment used as truth value ??? If you want this kind of checking in Tcl, you have to make the assignment token significantly visually different. You complain all the time about making Tcl "better". Here is an area that every C programer will agree is a "mistake" in C, and you have a chance to avoid the same mistake, so why not take advantage of it? -Brian |