Why does the Java Language spec allow a unicode escape sequence to contain 1 or more 'u' characters before the 4 hex characters?
How do we print the 'A' character?
char c = '\u0041';
System.out.println("c: " + c);
// Prints:
// c: A
Ok, but this prints 'A' too:
char c = '\uu0041';
System.out.println("c: " + c);
// Prints:
// c: A
As does this:
char c = '\uuuuuuuuuuuuu0041';
System.out.println("c: " + c);
// Prints:
// c: A
So there seems to be an infinite number of unicode escape sequences to represent any unicode escape sequence (ha!).
Question: What purpose does this serve in the language?