Brian Huffman <[EMAIL PROTECTED]> wrote: > Here is a printf-style function that I hacked up this morning; it uses type > classes but it doesn't need functional dependencies: [snip]
It's very nice and even extendable, though `class Printf String' is unfortunately not Haskell 98. But the bigger question is, how to support Posix-style positional arguments? They are essential for i18n. For instance, > printf "%1$s %2$s" "foo" "bar" -- ==> "foo bar" > printf "%2$s %1$s" "foo" "bar" -- ==> "bar foo" Naturally, such format strings cannot be pre-processed by the compiler since they are typically loaded from some message database at run time. -- anatoli t. __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com _______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell