[Haskell-cafe] Generic polyvariadic printf in Haskell98

Erik de Castro Lopo mle+hs at mega-nerd.com
Fri Jun 5 04:29:11 EDT 2009

oleg at okmij.org wrote:

> Still, the code is a bit unsatisfactory because of the appearances of
> "error" in pr_aux functions. The errors like passing too many or too
> few arguments to printf (as demanded by the format specification) are
> caught only at run-time. We can certainly do better.

I'd love to see it.

Coming from Ocaml one of the things  I miss is compile time
checking of printf arguments.

Erik de Castro Lopo

More information about the Haskell-Cafe mailing list