That's true -- that's why I wrote up the Letters debugging mini-library for Ruby (lettersrb.com). However, there's friction there, too, and a surprising number of people don't think to do this.
On Thursday, May 30, 2013 at 5:25 PM, Timothy Baldridge wrote: > Not really true, most of my programs contain this function: > > (defn debug [x] > (pprint x) > x) > > Now I can do this: > > (comp foo debug bar) > > Also, with some reader literal magic, I could write something to let me do > this: > > (myfunc foo #dbg bar) > > > > On Thu, May 30, 2013 at 6:12 PM, David Jacobs <da...@wit.io > (mailto:da...@wit.io)> wrote: > > Two more things: > > > > 1) printing is often not a viable option for lazily eval-ed sequences or > > async processes -- the output gets jumbled! And believe me, when a new > > Clojure dev sees that for the first time, he/she wants to quit. > > 2) printing is terrible for elegant clojure code -- thing (comp f g h > > (partial map z)) -- in order to figure out anything about dynamic data > > flowing through, you have to break apart that composition or add a let > > binding in one of those functions before returning a value. Both of those > > involve a lot of friction. > > > > > > On Thursday, May 30, 2013 5:00:13 PM UTC-7, raould wrote: > > > for a long time haskell did not have a debugger. that sucked, imho. > > > > -- > > -- > > 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 > > (mailto: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 > > (mailto:clojure%2bunsubscr...@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 > > (mailto:clojure%2bunsubscr...@googlegroups.com). > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > > -- > “One of the main causes of the fall of the Roman Empire was that–lacking > zero–they had no way to indicate successful termination of their C programs.” > (Robert Firth) > > -- > -- > 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 > (mailto: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 > (mailto: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 > (mailto:clojure+unsubscr...@googlegroups.com). > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- 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.