On Sep 10, 2008, at 5:37 PM, Ben Kearns wrote: > user=> (in-ns '1foo) > (in-ns '1foo) > java.lang.NumberFormatException: Invalid number: 1foo > > Is there some reason that this is disallowed and should be avoided?
Yes, the argument to in-ns is a symbol and symbol names cannot begin with a number. The reader will try to interpret a token that begins with a number as a number. Please see http://clojure.org/reader , Reader Forms, Symbol which includes: Symbols begin with a non-numeric character [...] --Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
