evincarofautumn / kitten

A statically typed concatenative systems programming language.
http://kittenlang.org/
Other
1.09k stars 39 forks source link

Allow floating-point literals with no trailing digits #147

Closed evincarofautumn closed 7 years ago

evincarofautumn commented 9 years ago

E.g., 0. results in unexpected " " when it should probably just be allowed.

trans commented 7 years ago

Have you considered using e notation, 0e? You can then use dot notation for a Rational data type to avoid the precision errors of floating point.