From: Andrej Bauer <Andrej.Bauer@andrej.com>
To: "O'Caml Mailing List" <caml-list@inria.fr>
Subject: Re: [Caml-list] Polymorphic pretty printing
Date: Mon, 25 Oct 2004 09:26:13 +0200 [thread overview]
Message-ID: <417CAA95.20400@andrej.com> (raw)
In-Reply-To: <20041025030217.GB1582@old.davidb.org>
David Brown wrote:
> On Mon, Oct 25, 2004 at 11:04:36AM +1000, skaller wrote:
>
>> I'm curious why people want to use these kinds of routines.
>> What does printf style mini-language printing have to offer compared to
>> just using plain old Ocaml functions?
>
> sprintf "%04d/%02d/%02d %02d:%02d:%02d" y m d h m s
>
> becomes rather verbose and clumsy when written out as functions.
This discussion has nothing to do with printf and similar function.
Please do not derail the thread and stay on topic, which is
pretty-printing in ocaml toplevel.
Assuming the original question was "why pretty-printing" (as opposed to
"why printf", which is irrelevant to this discussion), the answer I hope
is clear: because a good interactive toplevel is useful for many
purposes. I have two kinds of motivation: teaching ocaml and enriching
ocaml toplevel with graphics and the like, so that it looks and feels
more like Mathematica. (Looks are important!)
Best regards,
Andrej
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2004-10-25 7:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-18 15:42 Andrej Bauer
2004-10-22 22:07 ` Christophe TROESTLER
2004-10-24 20:54 ` Andrej Bauer
2004-10-25 1:04 ` skaller
2004-10-25 3:02 ` David Brown
2004-10-25 7:26 ` Andrej Bauer [this message]
2004-10-25 14:45 ` Jon Harrop
2004-11-26 22:54 ` Frédéric Gava
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=417CAA95.20400@andrej.com \
--to=andrej.bauer@andrej.com \
--cc=caml-list@inria.fr \
/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