Date: Thu, 25 Mar 1999 14:29:01 +0100
From: Christian Lindig <firstname.lastname@example.org>
To: John Prevost <email@example.com>
Subject: Re: another approach to sprintf (Re: ocaml 2.02 bug: curried printf)
In-Reply-To: <firstname.lastname@example.org>; from John Prevost on Wed, Mar 24, 1999 at 02:37:53PM -0500
+-- Xavier Leroy
| It's a cute trick. One drawback is that the format is not a
| character string, but needs to be expressed using special
| functions and infix operators.
+-- John Prevost
| It does, however, mean that people can extend the set of patterns
| that can be used in printf in a more palatable way than the
| %a mechanism. Especially with neat things like Danvy's "lis"
The suggested functional approach to printf has another possible
drawback: when you want to express all the options like "%5.5f"
possible in C style printf formatting you need a whole bunch of
functions. Since OCaml has no overloading a single `float' function
for floats can not capture them all.
-- Christian Lindig Technische Universitaet Braunschweig, Germany http://www.cs.tu-bs.de/softech/people/lindig email@example.com
This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:21 MET