edn-format / edn

Extensible Data Notation
2.61k stars 96 forks source link

".4bar" is not an acceptable symbol, though it is unambiguous since numbers can't start with "." #24

Closed bpsm closed 12 years ago

bpsm commented 12 years ago

I follow forbidding "-4bar" since that means potentially unbounded look-ahead to distinguish numbers from non-numbers.

Presumably forbidding ".4bar" is for the same reason, though ".1" doesn't appear to be a valid numeric literal. (Numeric literals all start with a digit.)

richhickey commented 12 years ago

leaving open the possibility of .1 becoming a valid number