It seems this is the best way to go currently:

user=> (Integer/parseInt "1234")
1234

but wouldn't it be nice if this worked:

user=> (str 123)
"123"
user=> (str 12.123)
"12.123"
user=> (int "123")
java.lang.ClassCastException: java.lang.String cannot be cast to 
java.lang.Character (NO_SOURCE_FILE:0)
user=> (float "12.123")
java.lang.ClassCastException: java.lang.String cannot be cast to 
java.lang.Number (NO_SOURCE_FILE:0)

-Jeff

--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to