On Dec 12, 12:24 am, Meikel Brandmeyer <[email protected]> wrote: > > I'm a bit confused. It just looks like a normal function call. > > (my-defmulti foo type) > > (my-defmethod foo String [x] (str "A String: " x)) > > (foo "Hello, World!") > > So it just looks like an ordinary function. Extracting the multi-call > function saves code size, eases macro development and allows to change the > underlying driver function for all multimethods while working on it. Very > helpful, because you don't have to re-call the my-defmulti macro, but still > have the changes take immediate effect.
Oh, I'm so inattentive! I had not understand at first how the last macro my-defmethod worked, but saw the call-multi function and thought it was about calling additional function to extract the method. Now I got I fine and see that it is really what I need! I very much appreciate your help. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. 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
