On Sat, Feb 21, 2009 at 1:48 PM, pc <peng2che...@yahoo.com> wrote:
>
> (macroexpand-1 '(.toUpperCase #^String s))
> ==> (. s toUpperCase)
>
> would it be better/possible to preserve type information? I.e.,
>
> (macroexpand-1 '(.toUpperCase #^String s))
> ==> (. #^String s toUpperCase)

It already does, but the repl by default does not print metadata:

(binding [*print-meta* true]
  (prn (macroexpand '(.toUpperCase #^String s))))
==> (. #^String s toUpperCase)

--Chouser

--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to