CASC-Lang / Yakou

An experimental JVM Language inspired by Rust.
38 stars 2 forks source link

The primitive type names and the literal suffixes are not matched #56

Closed lumynou5 closed 2 years ago

lumynou5 commented 2 years ago

The primitive type names and the literal suffixes are not matched; for example, the type is i32 but the literal is 1I.

ChAoSUnItY commented 2 years ago

Ok, so it went out in CASC number naming covention is not that easily to describe. For all integers, inlcuding byte, short, int, and long, they are all sharing a integer prefix which is i in this case. So for i32, it shouldn't be 1I, instead, it should be 1i32.

And so on, to specify a number literal's type, you should add corresponding type name after it.

ChAoSUnItY commented 2 years ago

afaik, this issue had been fixed, as example showed.