DEV Community

Discussion on: Clever coding tricks ( that we don't need )

Collapse
 
themanjia profile image
TheManjia

I agree on all the line with the sole exception for the "goes to" operator:

x = 10;
while (x --> 0) // While X goes to Zero
{
print(x);
}
// Output: 9876543210
Enter fullscreen mode Exit fullscreen mode

The "goes to" operator is just very cool and works in almost every language!
(it's a "X minus minus major than 0" if someone didn't notice XD)