The description of legal symbols at http://clojure.org/reader could be
somewhat more explicit on this.  One could read it to mean that since :m/7
starts with an non-numeric "m" after the :, it is legal.  One could also
infer from it that since within namespace m you could not use :7 (since
that starts with a numeric symbol), :m/7 should not be legal, either.  I
personally believe the second statement is correct, but that is only my
non-authoritative opinion.

Clojure has a history of functions that do not throw exceptions and return
what look like perfectly valid return values for symbols, namespaces, and
keywords, even though the documentation says they are not supported.  For
example, see http://dev.clojure.org/jira/browse/CLJ-1033

I have no idea whether this is likely to change.  I would guess it isn't
high priority for Clojure/core members.

Andy

On Sun, Apr 14, 2013 at 8:37 AM, ubun2 <johnny.weng....@gmail.com> wrote:

> (keyword "m" "7") ;;=> :m/7
>
> :m/7 ;;=> #<RuntimeException java.lang.RuntimeException: Invalid token:
> :m/7>
>
> a bug right?
>
> --
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to