Re: a macro to debug the let form

2010-12-09 Thread Sunil S Nandihalli
Thanks Alan, I have in fact realized the mistake after I posted it .. and I had posted another message which has it the way you mentioned. Sunil. On Tue, Dec 7, 2010 at 11:55 PM, Alan wrote: > I see you have defined a print-and-return macro; you might prefer my > and-print: > > (defmacro and-pr

Re: a macro to debug the let form

2010-12-07 Thread Alan
I see you have defined a print-and-return macro; you might prefer my and-print: (defmacro and-print "A useful debugging tool when you can't figure out what's going on: wrap a form with and-print, and the form will be printed alongside its result. The result will still be passed along." [va

Re: a macro to debug the let form

2010-11-28 Thread Sunil S Nandihalli
Hi Robert, What I had posted before was half-baked buggy code .. the following gist has a few more helper debug macros https://gist.github.com/718725 This code was written when I was trying to learn writing macros .. so any criticism is very welcome. Thanks Sunil.

Re: a macro to debug the let form

2010-11-27 Thread Robert McIntyre
cool! Although I think with-seperator should be spelled "with-separator" --Robert McIntyre On Thu, Nov 25, 2010 at 9:13 AM, Sunil S Nandihalli wrote: > I just tried to re-write with-seperator without using the symbol-macros from > macro-utils and it seems to work fine .. > > On Thu, Nov 25, 201

Re: a macro to debug the let form

2010-11-25 Thread Sunil S Nandihalli
I just tried to re-write with-seperator without using the symbol-macros from macro-utils and it seems to work fine .. On Thu, Nov 25, 2010 at 1:27 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hello everybody, > I was trying to learn to write clojure macros and the code is poste

a macro to debug the let form

2010-11-24 Thread Sunil S Nandihalli
Hello everybody, I was trying to learn to write clojure macros and the code is posted here in the following link https://gist.github.com/715047 There are basically three macros 1. with-seperator - a zero argument macro and is supposed to just draw a line to indicate beginning and ending of the ex