Is anyone familiar with the "Goes-To" operator? Consider the following code:
#include <stdio.h>
int main(int argc, char* argv[])
{
int x = 10;
while( x --> 0 ) // x goes to 0
{
printf("%d ", x);
}
return 0;
}
This actually compiles and runs (seriously). Source:
Crap like thqat is a pet peeve of mine ...
While (even)
while(x-->0)
might compile, I'd feel a LOT better seeing
while( x-- > 0 )
.. I ain't no damed 'puter, let IT read that crap if i wants to. ;)
Re: Goes-To operator (humor)
By: Phill Terry to NIGHTFOX on Thu Dec 31 2009 15:31:00
Crap like thqat is a pet peeve of mine ...
While (even)
while(x-->0)
might compile, I'd feel a LOT better seeing
while( x-- > 0 )
.. I ain't no damed 'puter, let IT read that crap if i wants to. ;)
I know what you mean, and I feel the same way.. I think source code should b
easily readable. Another one of my pet peeves is source code that uses very NI>little spaces - For example:
int x=3;
for (int y=0; y<5; y++)
I think those are more easily readable as:
int x = 3;
for (int y = 0; y < 5; y++)

 Web-based telnet client
Web-based telnet client Telnet
Telnet RLogin
RLogin IRC
IRC Email & news access
Email & news access| Sysop: | Eric Oulashin | 
|---|---|
| Location: | Beaverton, Oregon, USA | 
| Users: | 102 | 
| Nodes: | 16 (0 / 16) | 
| Uptime: | 10:14:07 | 
| Calls: | 7,035 | 
| Files: | 8,559 | 
| D/L today: | 99  				files (12,055K bytes) | 
| Messages: | 369,865 |