Browse thread
[Caml-list] Printing text with holes
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Richard Jones <rich@a...> |
| Subject: | Re: [Caml-list] Printing text with holes |
On Mon, Sep 29, 2003 at 11:39:32AM -0500, Brian Hurt wrote: > On Mon, 29 Sep 2003, Martin Jambon wrote: > > > Hello, > > > > I am curious to know what people use to print long text written in a > > natural language, and containing many holes, like dynamically generated > > web pages. > > I agree. I think printf is a horrible way to do output. Reasons include, > but are not limited to, the fact that you are basically creating a new > "mini-language" (the formatting language) which has to be type checked > etc. seperately from the main language, that the values being put into the > string are listed far from their positions in the string (your problem) > leading to missing parameters, parameters in the wrong order, etc. Well it may not be theoretically any good, but practically printf is immensely usable. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. "My karma ran over your dogma" ------------------- 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