[Haskell-cafe] Pure Haskell Printf

Vincenzo Ciancia vincenzo_mlRE.MOVE at yahoo.it
Wed Nov 17 10:46:26 EST 2004


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?

The implementation of printf in ocaml, for example, is not only 
type-safe, but "more type safe" than passing a list, because the number 
and type of arguments is known at compile time.

V.


More information about the Haskell-Cafe mailing list