On Wed, 17 Nov 2004, Vincenzo Ciancia wrote:
> On Tuesday 16 November 2004 10:37, Henning Thielemann wrote:
> > Variable length argument lists are really a mess. Why are people so
> > keen on them? What is the advantage over a plain list as single
> > argument? Is vsprintf "%s, your age is %s\n"
On Tuesday 16 November 2004 10:37, Henning Thielemann wrote:
> Variable length argument lists are really a mess. Why are people so
> keen on them? What is the advantage over a plain list as single
> argument? Is vsprintf "%s, your age is %s\n" ["John", show
> (10::Integer)] really too complicated?
On Mon, 15 Nov 2004, John Goerzen wrote:
> Here are some examples:
>
> vsprintf "Hello"
> > "Hello"
> vsprintf "Hello, %s\n" "John"
> > "Hello, John\n"
> vsprintf "%s, your age is %d\n" "John" (10::Integer)
> > "John, your age is 10\n"
>
> sprintfAL "%(name)s, your age is %(age)d\n"
> [("name
(Sorry for the crosspost; I'm not sure which list this should go to.)
I've just completed a pure-Haskell printf. Docs at [1], download at
[2].
Here are some examples:
vsprintf "Hello"
> "Hello"
vsprintf "Hello, %s\n" "John"
> "Hello, John\n"
vsprintf "%s, your age is %d\n" "John" (10::Integer)