[Haskell-cafe] Re: Pure Haskell Printf
droundy at abridgegame.org
Tue Nov 16 06:38:36 EST 2004
On Tue, Nov 16, 2004 at 12:21:41PM +0100, Henning Thielemann wrote:
> The function MissingH.Printf.sprintf is probably the better choice, but
> one could even replace [Value] by [String]. The conversion from any type
> to String can be easily done using 'show' by the caller. Though it gives
> the author of the format string less control over the formatting of
> particular types like numbers.
It seems to me that control over formatting of numbers is the only reason
to use anything printf-like... but perhaps that's just because of the
frequency with which I print (and read) doubles.
More information about the Haskell-Cafe