Created
March 16, 2013 22:59
-
-
Save whymarrh/5178692 to your computer and use it in GitHub Desktop.
A cool "tends to" operator in C (not actually).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define as while | |
// as seen on Stack Overflow | |
// http://stackoverflow.com/q/1642028 | |
int main(int argc, char **argv) { | |
int x = 42; | |
as (x --> 0) { | |
printf("%d\n", x); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment