Re: [Haskell-cafe] Float instance of 'read'

2008-09-17 Thread Henning Thielemann
On Tue, 16 Sep 2008, Mauricio wrote: Hi, A small annoyance some users outside english speaking countries usually experiment when learning programming languages is that real numbers use a '.' instead of ','. Of course, that is not such a problem except for the inconsistence between computer

[Haskell-cafe] Float instance of 'read'

2008-09-16 Thread Mauricio
Hi, A small annoyance some users outside english speaking countries usually experiment when learning programming languages is that real numbers use a '.' instead of ','. Of course, that is not such a problem except for the inconsistence between computer and free hand notation. Do you think

Re: [Haskell-cafe] Float instance of 'read'

2008-09-16 Thread Rafael C. de Almeida
Mauricio wrote: Hi, A small annoyance some users outside english speaking countries usually experiment when learning programming languages is that real numbers use a '.' instead of ','. Of course, that is not such a problem except for the inconsistence between computer and free hand

Re: [Haskell-cafe] Float instance of 'read'

2008-09-16 Thread Tilo Wiklund
Wouldn't that make it hard to parse lists of floats? On Tue, 2008-09-16 at 09:29 -0300, Mauricio wrote: Hi, A small annoyance some users outside english speaking countries usually experiment when learning programming languages is that real numbers use a '.' instead of ','. Of course, that

Re: [Haskell-cafe] Float instance of 'read'

2008-09-16 Thread Miguel Mitrofanov
On 16 Sep 2008, at 16:29, Mauricio wrote: I'm happy to finaly use a language where I can use words of my language to name variables, so I wonder if we could also make that step. Really? There is a bunch of languages (like Glagol) that use words of Russian language as keywords; AFAIK there

Re: [Haskell-cafe] Float instance of 'read'

2008-09-16 Thread Twan van Laarhoven
Mauricio wrote: Do you think 'read' (actually, 'readsPrec'?) could be made to also read the international convention (ie., read 1,5 would also work besides read 1.5)? I'm happy to finaly use a language where I can use words of my language to name variables, so I wonder if we could also make that

Re: [Haskell-cafe] Float instance of 'read'

2008-09-16 Thread Dan Piponi
Mauricio asked: Do you think 'read' (actually, 'readsPrec'?) could be made to also read the international convention (ie., read 1,5 would also work besides read 1.5)? What would you hope the value of read (1,2,3)::(Float,Float) would be? -- Dan

Re: [Haskell-cafe] Float instance of 'read'

2008-09-16 Thread Albert Y. C. Lai
Mauricio wrote: Do you think 'read' (actually, 'readsPrec'?) could be made to also read the international convention No. read and show are meant to be KISS, suitable for toy programs and casual debugging messages. Real applications should use or invent a sophisticated, general library.

Re: [Haskell-cafe] Float instance of 'read'

2008-09-16 Thread Jules Bean
Mauricio wrote: Do you think 'read' (actually, 'readsPrec'?) could be made to also read the international convention (ie., read 1,5 would also work besides read 1.5)? I'm happy to finaly use a language where I can use words of my language to name variables, so I wonder if we could also make that

Re: [Haskell-cafe] Float instance of 'read'

2008-09-16 Thread Bryan O'Sullivan
On Tue, Sep 16, 2008 at 5:29 AM, Mauricio [EMAIL PROTECTED] wrote: Do you think 'read' (actually, 'readsPrec'?) could be made to also read the international convention (ie., read 1,5 would also work besides read 1.5)? No, as read is really intended to be a language-level tool, not