Hi, On Oct 28, 7:56 am, John Harrop <jharrop...@gmail.com> wrote:
> That was correct. I just wanted to avoid any confusion between the #() read > macro and anonymous functions; the read macro is one way of writing an > anonymous function but it is not the only way so the two aren't quite > interchangeable. #() is intended only for short anonymous functions like #(instance? Foo %). It is not a replacement for fn. #() does not nest. Here you also see why it works the way it works: #((instance? Foo %)) would a) look weird and b) give a wrong impression, that you "call" the return value of instance?. So for anything more complicated you should use fn instead of #(). Sincerely Meikel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---