It is not recommended to use Hex literal with mixed casing.
The x
in 0x
should always be in lowercase. The other letters may be lowercase or uppercase, but they should not be in mixed cases.
Following the recommended casing makes the hex literal consistent and more readable.
x := 0XFF // X should not be capitalized
y := 0xfF // mixed case should not be used
x := 0xFF
y := 0xff // or 0xFF