[plt-dev] logging: strings vs. sexps

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Feb 19 15:53:48 EST 2009

On Feb 19, Robby Findler wrote:
> On Thu, Feb 19, 2009 at 2:50 PM, Grant Rettke <grettke at acm.org> wrote:
> > On Thu, Feb 19, 2009 at 12:12 PM, Eli Barzilay <eli at barzilay.org> wrote:
> >> On Feb 19, Robby Findler wrote:
> >>> I think Eli's asking 'why not do (log-info (format "~s"
> >>> my-sexp))?'. Right?
> >>
> >> [Uh, yeah, but that looks so much boring...]
> >
> > Is (log-info-sexpr ...) less boring?
> 
> It is such a short macro; do we really need to add 3 more exports to
> scheme/base for that?

+1 for not adding it, for exactly that reason.  (It probbaly doesn't
even have to always be a macro, since the sexpr will usually not be
expensive to construct.)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the dev mailing list.