From: skaller <skaller@users.sourceforge.net>
To: Andrej Bauer <Andrej.Bauer@andrej.com>
Cc: Christophe TROESTLER <debian00@tiscali.be>,
"O'Caml Mailing List" <caml-list@inria.fr>
Subject: Re: [Caml-list] Polymorphic pretty printing
Date: 25 Oct 2004 11:04:36 +1000 [thread overview]
Message-ID: <1098666276.3075.65.camel@pelican.wigram> (raw)
In-Reply-To: <417C1673.6020007@andrej.com>
On Mon, 2004-10-25 at 06:54, Andrej Bauer wrote:
> Christophe TROESTLER wrote:
> >
> >> Am I supposed to rewrite half of toplevel.ml to get this working?
> >
> > I am afraid that the awser is yes :(. Let's see why:
>
> Thanks for the hints.
>
> I'd be willing to take a shot at writing a more flexible toplevel, one
> that allows to install polymorphic pretty-printers in a sane way.
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?
I almost never use this kind of printer, and even systematically
removed it from a program I was working on once. I would have guessed
printf style printing is nice for debugging or perhaps logs,
but not much more. Ocaml itself seems a stronger and better
language to me.
Similarly I never use iostreams in C++ .. and there we have
overloading, which is even more convenient for remembering
the names of the formatting routines.
Still, I use printf() itself in C.
What makes such printers better than just using ordinary routines?
> Does this sound like a sound plan? Or am I missing something?
Well, how would you port code using such a printer to
an ocamlopt program?
--
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850,
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net
-------------------
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 1:05 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 [this message]
2004-10-25 3:02 ` David Brown
2004-10-25 7:26 ` Andrej Bauer
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=1098666276.3075.65.camel@pelican.wigram \
--to=skaller@users.sourceforge.net \
--cc=Andrej.Bauer@andrej.com \
--cc=caml-list@inria.fr \
--cc=debian00@tiscali.be \
/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