[plt-scheme] request: itemized display of expected arguments on error

From: Neil W. Van Dyke (neil at neilvandyke.org)
Date: Thu Jul 15 07:39:50 EDT 2004

> > b/ I cannot tell where 1 argument ends and the next begin (see sample 
> > output)

If you're working with SXML from the MzScheme REPL rather than from
DrScheme, the standard library "pretty.ss" is useful:

> (require (lib "httper.ss" "httper") (lib "htmlprag.ss" "htmlprag"))
> (require (lib "pretty.ss"))
> (pretty-print (html->shtml (http-get-content "http://www.plt-scheme.org/")))
(|*TOP*|
 (html
  (head
   (title "PLT Scheme")
   (meta (@ (name "generator") (content "PLT Scheme")))
   (meta
    (@ (http-equiv "Content-Type") (content "text/html; charset=iso-8859-1")))
   (style
    (@ (type "text/css"))
    ".sansa { font-family: Arial, Helvetica, sans-serif; }\n"
    ".min { font-size: 10px; }")
   (link (@
          (rel "icon")
          (href "http://www.plt-scheme.org/plticon.ico")
          (type "image/ico")))
   (link (@
          (rel "shortcut icon")
          (href "http://www.plt-scheme.org/plticon.ico"))))
  (body
   (@ (bgcolor "white"))
   (table
    (@
     (height "100%")
     (width "100%")
     (cellspacing "0")
     (border "0")
     (cellpadding "0"))
    (tr
[...]


Posted on the users mailing list.