SpadeMC/Spade

Number type suffixes

Opened this issue · 0 comments

jf908 commented

Proposal:

Suffixes for number literals to indicate their type.
Uses same conventions as Java.

3b -- byte
5s -- short
62 -- int by default
32l -- long

32.1f -- float
65d -- double

Why:

To allow the creation of numeric literals of different types