|
![](/i/fill.gif) |
I just stumbled across this on Stack Overflow:
while (x --> 0)
(This is C++, in case that wasn't clear. It probably works in C too, I
would imagine...)
The question, naturally, was asking what the hell the "-->" operator
does. The answer is... well, it's completely logical. But this still
leaves me wondering who THE HELL wrote this code snippet in the first
place?? They could so trivially have made its meaning clearer...
I guess every programming language has dark corners where you can do
really strange stuff. But the question is usually "why would you do that?"
Post a reply to this message
|
![](/i/fill.gif) |