One minute
Programming with emoji
I really need to use emoji as variable names!
cit. Nobody
This is a perfectly valid C+ statement:
printf("๐๐!\n");
But also this:
int ๐ฆ = 0;
So why using normal variable names anymore?
#include <stdio.h>
typedef int ๐บ;
#define ๐ฎ main
๐บ ๐ฎ() {
๐บ ๐ค= 1;
๐บ ๐= 0;
๐บ ๐ฅ= 0;
for (๐บ ๐ฑ= 0; ๐ฑ< 10; ๐ฑ++) {
๐ฅ=๐;
๐=๐ค+๐;
๐ค= ๐ฅ;
printf("%i\n", ๐);
}
}
Now go, and replace all you variables name with emoji! Note: your colleagues may not be happy later on…
Some implementation details are available on GCC documentation, and looks like it support has been around for a while.