evincarofautumn / kitten

A statically typed concatenative systems programming language.
http://kittenlang.org/
Other
1.1k stars 42 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 8 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.