That sounds fine, so long as 0x_
desugars to Integer.parseInt(_, 16)
.
1 Like
That sounds right to me (at compile time, I assume)
I agree. We still can use string interpolation for the other stuff, which is good enough I think.
I disagree :))
We often write something like:
val a = 10.nn /* return BigDecimal with null support*/
If we need a real number we must write:
val a = "10.1".nn
or
val a = nn"10.1"
But in pattern matching we always must use string interpolation.
We have a lot of dibate on it, like:
I think it is great when the language can make such debate redundant.
When 80% of numeric constants is Bigdecimal in your business logic, such debate really annoy