On Fri, Sep 7, 2012 at 3:01 AM, Rich Hickey <richhic...@gmail.com> wrote:
> I've started to document a subset of Clojure's data format in an effort to 
> get it more widely used as a data exchange format, e.g. as an alternative to 
> JSON.
>
> Please have a look:
>
> https://github.com/richhickey/edn
>

"If - or . are the first character, the second character must be
non-numeric. Additionally, : # are allowed as constituent characters
in symbols but not as the first character."

So, is "foo/-4bar" allowed or not? It would seem allowed, but this has
the unfortunate property that the we're left with an unreadable symbol
if we strip the prefix: "-4bar".

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 ".01"
doesn't appear to be a valid numeric literal. (Numeric literals all
start with a digit.)

// Ben

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to