Re: ANN: print-foo - a library of print debugging macros

2013-10-27 Thread Alex Baranosky
I took some inspiration from Tim Baldridge's code-walking macro youtube video (http://www.youtube.com/watch?v=HXfDK1OYpco) and updated print-foo's `print-sexp` macro to intelligently expand the code it surrounds. print.foo=> (print-sexp (str (+ 3 4) (+ 5 (* 6 2)) 4))3 34 4(+ 3 4) 75 56 62 2(* 6 2)

Re: ANN: print-foo - a library of print debugging macros

2013-03-28 Thread Alex Baranosky
Jim, No reason I left out loop/recur. I just didn't get around to it. Pull requests accepted. On Thu, Mar 28, 2013 at 12:07 PM, Alex Baranosky < alexander.barano...@gmail.com> wrote: > adrians, > > https://clojars.org/print-foo > > I've got to deploy it with proper signing. > > > On Thu, Mar 2

Re: ANN: print-foo - a library of print debugging macros

2013-03-28 Thread Alex Baranosky
adrians, https://clojars.org/print-foo I've got to deploy it with proper signing. On Thu, Mar 28, 2013 at 11:59 AM, adrians wrote: > Alex, print-foo *is* the correct artifact name, no? It seemed to be > pulled down fine by pomegranate. > > > On Thursday, March 28, 2013 2:35:31 PM UTC-4, Alex B

Re: ANN: print-foo - a library of print debugging macros

2013-03-28 Thread adrians
Alex, print-foo *is* the correct artifact name, no? It seemed to be pulled down fine by pomegranate. On Thursday, March 28, 2013 2:35:31 PM UTC-4, Alex Baranosky wrote: > > Let me fix the README, the library should be required like this (:require > [print.foo :refer :all]) > -- -- You receive

Re: ANN: print-foo - a library of print debugging macros

2013-03-28 Thread Jim - FooBar();
On 28/03/13 18:39, Alex Baranosky wrote: Jim, I'm interested in that idea definitely, but perhaps we should just create another open source project for time.foo? Ok cool, I'll do that over the weekend and poke you sometime next week to have a look...also, have you deliberately left out prin

Re: ANN: print-foo - a library of print debugging macros

2013-03-28 Thread Alex Baranosky
Jim, I'm interested in that idea definitely, but perhaps we should just create another open source project for time.foo? On Thu, Mar 28, 2013 at 11:35 AM, Alex Baranosky < alexander.barano...@gmail.com> wrote: > Let me fix the README, the library should be required like this (:require > [print.f

Re: ANN: print-foo - a library of print debugging macros

2013-03-28 Thread Alex Baranosky
Let me fix the README, the library should be required like this (:require [print.foo :refer :all]) On Thu, Mar 28, 2013 at 11:22 AM, adrians wrote: > Looks useful, but I'm getting this: > > user=> (use 'print-foo) > FileNotFoundException Could not locate print_foo__init.class or > print_foo.clj

Re: ANN: print-foo - a library of print debugging macros

2013-03-28 Thread adrians
Looks useful, but I'm getting this: user=> (use 'print-foo) FileNotFoundException Could not locate print_foo__init.class or print_foo.clj on classpath: clojure.lang.RT.load (RT.java:443) using lein 2.1.1 Cheers On Thursday, March 28, 2013 1:42:42 AM UTC-4, Alex Baranosky wrote: > > print-foo

Re: ANN: print-foo - a library of print debugging macros

2013-03-28 Thread Cedric Greevey
Why not generalize further then? Have a macro def-foo-let (actual name) that takes a name and an operator (function or macro), so that (defn print-out [x] (println x) x) (def-foo-let print-let print-out) will generate a print-let that prints each thing as it's computed, and (def-foo-let tim

Re: ANN: print-foo - a library of print debugging macros

2013-03-28 Thread Jim - FooBar();
Nice, thanks... :) I've started writing a very similar namespace but instead of printing, I'm timing...would you be interested in including a time-foo.clj following the same pattern (append 'time-') in your little library? I've only got 'time-let' which is the one I mostly use but I can imagine

ANN: print-foo - a library of print debugging macros

2013-03-27 Thread Alex Baranosky
print-foo is a small library useful when debugging code, or at the REPL when writing your code. https://github.com/AlexBaranosky/print-foo It is a collection of macros that mimic basic clojure macros like defn, let, or ->, but which prints the value of the code at each point in the transformation