Re: [Haskell-cafe] IO and State

2004-11-17 Thread Jan-Willem Maessen
Marcin 'Qrczak' Kowalczyk wrote: "Iavor S. Diatchki" <[EMAIL PROTECTED]> writes: I find the argument a bit disturbing, as it seems to imply that it is OK for the compiler to produce code without any context switches at all Note that in this case if the main program doesn't explicitly block

Re: [Haskell-cafe] IO and State

2004-11-17 Thread Marcin 'Qrczak' Kowalczyk
"Iavor S. Diatchki" <[EMAIL PROTECTED]> writes: > I find the argument a bit disturbing, as it seems to imply that it > is OK for the compiler to produce code without any context switches > at all Note that in this case if the main program doesn't explicitly block on MVars, I/O nor timeout, then f

[Haskell-cafe] Re: Pure Haskell Printf

2004-11-17 Thread John Goerzen
On 2004-11-17, Vincenzo Ciancia <[EMAIL PROTECTED]> 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

Re: [Haskell-cafe] Pure Haskell Printf

2004-11-17 Thread Henning Thielemann
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"

Re: [Haskell-cafe] Re: Pure Haskell Printf

2004-11-17 Thread Jan-Willem Maessen
Scott Turner wrote: On 2004 November 16 Tuesday 06:42, Jérémy Bobbio wrote: There is a probleme with ShowS though: it is not internationalizable at all. Strings like printf's or with any kind of variable substitution is required for proper internationalization / localization. Printf is no

Re: [Haskell-cafe] Pure Haskell Printf

2004-11-17 Thread Vincenzo Ciancia
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?