Hi,

Would it be better/possible to allow a class prefix for instance
calls?
I.e., something like:

(String/.toUpperCase s)

The (String/.toUpperCase s) case would expand to (. #^String s
toUpperCase).

The current open dispatch form (.toUpperCase s) would still be
accepted of course.

The use of a qualified symbol name for instance methods seems
compatible with the rules for naming fully qualified symbols, the  way
instance methods are called in "doto", etc.

(String/valueOf  12)   --- Class qualified static
(String/.toUpperCase "ab")  -- Class qualified instance
(clojure.contrib.stacktrace/e) -- ns qualified function
(st/e) -- alias qualifed function

Regards,

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