On Sat, Jul 2, 2011 at 10:30 AM, James Keats <james.w.ke...@gmail.com> wrote: > I'll re-quote it: "• Most Clojure programmers go through an arc. > First they think “eww, Java” and try to hide all the Java. Then they > think “ooh, Java” and realize that Clojure is a powerful way to write > Java code. Rich frowns upon “wrapper” functions in Clojure that do > nothing but wrap a Java method. Calling the Java method directly is > faster and easier to look up in JavaDoc."
There's one obvious use case for such a wrapper function, though: if you'll want to pass the Java method to HOFs from time to time. You can't directly pass a Java method to a HOF, but you can pass such a wrapper function. -- Protege: What is this seething mass of parentheses?! Master: Your father's Lisp REPL. This is the language of a true hacker. Not as clumsy or random as C++; a language for a more civilized age. -- 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 Note that posts from new members are moderated - please be patient with your first post. 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