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

Re: My First Computer



pausch@saaf.se (Paul Schlyter) writes:

>   while( printf("Hello\n"), 1 );

I also found out that __ for(;printf("Hello\n");); __ works equally 
well as the while statement, although both will have a conditional 
to check for every loop.

By the way, speaking of readability in computer languages, there is 
some C implementation of a modem/network data decoding that uses a 
switch() statement as a piece of spaghetti art, running branches 
into eachother and stuff. I saw a few years ago, can't recall how
it worked but it was non-trivial to follow.

-- 
Anders Carlsson