vs.

Someone writes it in a planet package; everyone and their brother imports it.

    (define-syntax-rule (log-info-sexp sexp)
      (log-info (format "~v" sexp)))

is actually easier to write and remember than

    (require (planet cce/logging-utils:4/sexp))

and they're both just annoying enough to noticeably degrade the convenience of logging.

I would put down my preference at something like having a `current-log-formatter' parameter of type (any -> string) whose default value is

   (lambda (x) (format "~v" x))

but that could be replaced by the identity function if you want to choose your own format.

But this isn't up to me; I'll bow out now.

Dave
_________________________________________________
 For list-related administrative tasks:
 http://list.cs.brown.edu/mailman/listinfo/plt-dev

Reply via email to