Is it planned to improve number literals? I need to do some binary arithmetic with longs and I’m unable to initialize a variable with, for example,
0xFF00FF00FF00FF00L
because “the value is out of range”. Also, you can’t write Long.MIN_VALUE as a literal in any way (even if you don’t use hex), because
println(-9223372036854775808)
also creates the “the value is out of range” error (even though it is a valid Long). I understand this is probably because this is interpreted as a positive number with a unary operator, but it’s really annoying and an unnecessary complication.