[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lujit - Malformed number
- From: Alexander Gladysh <agladysh@...>
- Date: Wed, 8 Sep 2010 17:05:42 +0400
On Wed, Sep 8, 2010 at 16:50, Leo Razoumov <firstname.lastname@example.org> wrote:
> On Tue, Sep 7, 2010 at 05:43, steve donovan <email@example.com> wrote:
>> On Tue, Sep 7, 2010 at 11:35 AM, Mike Pall <firstname.lastname@example.org> wrote:
>>> Nope, since strtod() doesn't handle that (in most locales).
>> It would also be ambiguous - e.g return 123,233.2 - Lua syntax
>> interprets this as returning two values.
> By this logic even 123,456 is ambiguous in a locale that uses "," as a
> decimal separator.
> Looks like a can of worms:-)
Oops! My serialization code will generate ambigious output then? No, thanks!
Programming language syntax should not be dependent on the locale.
Implementation problems are a poor excuse...