Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] XEmacs vs. Unix



On 2009-11-24 21:04 +0900 (Tue), Stephen J. Turnbull wrote:

> Curt Sampson writes:
> 
>  > Indeed, it's trivial. My patch:
>  > 
>  >     int is_josh_an_idiot() {
>  > 	return 1;
>  >     }
>  > 
> 
> Uh, that's dead code....

How can you tell? The result could indeed be used. E.g.,

    for ( i = 0; i < 10; i += is_josh_an_idiot() )
	printf("Hmmmm.....  ");

(Hm. That code sample was rather awkward to do. Not having written C
that others can see for so long, I'd forgotten how much of your own
personal style you expose with every line of C code. I'm blushing, even.)

Anyway, even if it were, better the code dead than the idiot. (We really
love Josh, despite picking on him all the time. He's like our own
personal Steve Yegge.)

Additional bonus: this should optimize very well, and if it doesn't, we
can make sure it does with a preprocessor macro.

cjs
-- 
Curt Sampson       <cjs@example.com>        +81 90 7737 2974
           Functional programming in all senses of the word:
                   http://www.starling-software.com


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links