On Tue, 18 Apr 2006, Nick Guenther wrote: > On 4/18/06, Joseph C. Bender <[EMAIL PROTECTED]> wrote: > > Ted Unangst wrote: > > > > > > another time, somebody should delete all this atom + 1 shit. any > > > computer that runs on electricity should be able to handle the strain. > > > > Okay, so I have to ask. > > > > Why would anyone do something that lame anyway? > > Well, if you write something like: > if(*str == 'c') > { > //in here it's redundant to have strcmp check the first character, > since you already know it's a c > if(strcmp(str+1, "har")) //if str == "char" > { > //eggs... > } > //spam... > } > > It just cuts down the number of branches in the code... but it's
No, no, no, it increases the number of branches. > hardly worth it, it makes it to much more difficult to read. I would say, not worth it. -Otto