Thanks, Stefan. That sounds like good advice. Dave
On Sunday, June 30, 2013 5:09:23 AM UTC-5, Stefan Kamphausen wrote: > > Just a little hint which may help you in the future. > > First, note the trailing $fn in reformat-headers$fn which tells you, that > your problem is with an anonymous function. > > Second, you know that there is a second form for anonymous functions which > uses fn instead of the reader macro. > > Third, fn can take a name for the anonymous function. That way you get a > better pointer in your exception, where the problem originated. > > > Recently, I find myself using the reader macros less, only for functions > which are basically just one form which are totally self-explanatory. The > usage of fn has two advantages: it can be nested and the parameters help > documenting the expected input. Using fn with a name yields better > exceptions plus serves a documentation purpose by naming what should happen. > > Just my ct. > > > Kind regards, > Stefan > > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.