caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Bill Wood <william.wood3@comcast.net>
To: Richard Jones <rich@annexia.org>
Cc: Ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] Request for comments: Printf list conversion
Date: Thu, 12 Jan 2006 13:29:18 -0600	[thread overview]
Message-ID: <1137094158.6027.8.camel@localhost> (raw)
In-Reply-To: <20060112173956.GA9364@furbychan.cocan.org>

On Thu, 2006-01-12 at 17:39 +0000, Richard Jones wrote:
   . . .
> If you just want to dump out data structures (for debugging, for
> example) then you might want to take a look at the Std.dump function
> in Extlib:
> 
> http://cvs.sourceforge.net/viewcvs.py/ocaml-lib/extlib-dev/std.mli?rev=1.15&view=markup
> 
> Or: http://merjis.com/developers/dumper
> 
> Of course this isn't suitable for end user reports.

This is good to know, but I'm talking about situations where I need more
structured output.  For example, I wrote a scheduling program for an
organization I belonged to, and found it convenient to output the
results as a LaTeX table.  So there was pre-matter boiler plate, then
the table, and finally post-matter boiler plate.  The results of the
scheduler were produced as a list of lists, where each member list had
an item for each column of the table.  A single (format...) form
consumed the results and wrote out the table.  All I had to do was run
the program, then run latex, and finally pipe the output of dvips to my
printer.  Of course, a major part of the convenience was that *I didn't
have to write the formatter*.

 -- Bill Wood



  reply	other threads:[~2006-01-12 19:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-12  9:19 Alessandro Baretta
2006-01-12  9:31 ` [Caml-list] " Jean-Marc EBER
2006-01-12  9:55 ` Jean-Christophe Filliatre
2006-01-12 12:55   ` Damien Doligez
2006-01-12 13:27     ` Virgile Prevosto
2006-01-13  8:47       ` Jean-Christophe Filliatre
2006-01-12 15:50 ` Bill Wood
2006-01-12 17:39   ` Richard Jones
2006-01-12 19:29     ` Bill Wood [this message]
2006-01-13  9:31   ` Hendrik Tews
2006-01-13 16:28     ` Bill Wood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1137094158.6027.8.camel@localhost \
    --to=william.wood3@comcast.net \
    --cc=caml-list@inria.fr \
    --cc=rich@annexia.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).