On Monday 08 December 2008 10:53, Stephen C. Gilardi wrote: > On Dec 8, 2008, at 1:34 PM, Tom Emerson wrote: > > I just wanted to make sure I wasn't missing something. Perhaps > > something along the lines of > > > > (defn format-string > > [fmt & args] > > (String/format fmt (to-array args))) > > Hi Tom, > > Good call on it being a convenient function to have around. It's > available as clojure.core/format. There's also printf along the same > lines.
Correct me if I'm wrong or insufficiently aware of the relevant issues, but is it not the case that such a helper function has an easier job for Format since it wants an array of Object. In other contexts, you have to know what the type of the array elements are to construct an acceptable varargs array. So would it not be the case that to be generic a varargs array-builder would have to use reflection on the target method? > --Steve Randall Schulz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
