Proposal: Add suffixes for smaller primitive numbe...
# language-proposals
r
Proposal: Add suffixes for smaller primitive numbers Currently, you can specify 3 primitive types will a character suffix: • Double (1d) • Float (1f) • Long (1L & 1uL) It would be nice to be able to do the same for smaller types • Byte (1b & 1ub) • Short (1s & 1us) • Int (1i & 1ui)
You can of course use the
.toXXX()
functions, but it seems inconsistent to only have suffixes for some of the primitive types.
f
There is a ticket for that already somewhere.
r
Really? I looked for one and didn't find anything. I guess my search-fu must not be strong enough.
f
I'm like 99% sure that there is, yeah, ... maybe I can find it.
r
Interesting, thanks. I didn't think about the
b
suffix conflicting with hex literals.