Traditionally, the accepted characters we can use as part of an identifier in C++ are _, a-z, A-Z
and 0-9
after the first character.
Is there a way to configure Visual Studio or GCC to accept emoji as part of the identifier names (or any other arbitrary unicode character)?
int a = 2, 😊 = 3;
😊++; 😊 *= 2;
int ∑(int a, int b) {return a + b;}
cout << ∑(a * 😊, 3) << endl;
const double π = 3.14159;
double α = sin(π / 2.0);