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

Mauricio briqueabraque at yahoo.com
Wed Sep 17 10:34:36 EDT 2008


Maybe. Doubles 'show' function always print something
after the decimal separator, so 'show [doubles]' is
easy to parse but difficult for human reading. It
would be nice to have a space between elements of a
shown list, though. It's an annoyance, but
internationalization is really great, I think it
deserves the effort.

Best,
Maurício

Tilo Wiklund a écrit :
> 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
>> is not such a problem except for the
>> inconsistence between computer and
>> free hand notation.
>>
>> 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 step.
>>
>> Thanks,
>> Maurício
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list