From: Jim Janney on
"Peter Olcott" <NoSpam(a)OCR4Screen.com> writes:

> "Lew" <noone(a)lewscanon.com> wrote in message
> news:hta6lq$jh8$1(a)news.albasani.net...
>> Peter Olcott wrote:
>>> There are apparently Chinese equivalents to the digit
>>> [0-9].
>>> How does Java handle this for Chinese programmers?
>>
>> By making them use '0' through '9', as Jeff Higgins
>> explained upthread.
>>
>> --
>> Lew
>
> Isn't this a little ethnocentristic?

Depends on your point of view. They're Arabic numerals, thus arguably
not even Western.

--
Jim Janney
From: Joshua Cranmer on
On 05/25/2010 07:16 AM, Thomas Pornin wrote:
> Personally, as a French (and French-speaking) programmer, I choose
> English-based identifiers and I write comments in English. This is
> because the language keywords, and all the standard library, are
> English-based. Mixing that with French would scorch my eyes.

I recall seeing one program written by a French programmer and another
written by one who was either Spanish or Portuguese. The French
programmer mostly stuck with English, although I recall the odd French
word bandied about, but the other one used the other language for a
large number (but not all!) of the method names, variable names, and
comments.

Let's just say, I'm grateful that you chose the option you did.
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
From: Arne Vajhøj on
On 24-05-2010 22:35, Patricia Shanahan wrote:
> Peter Olcott wrote:
> ...
>> I just want to know if it makes any sense to convert local punctuation
>> and local digits to ASCII for the computer language that I am
>> designing. That is the sole purpose of this thread. I used Chinese
>> Java to provide a completely concrete example.
> ...
>
> I don't have any experience with Chinese Java, but I have read a couple
> of French Fortran programs, and France really does have language purity
> laws. The identifiers and comments were all in French, but the
> punctuation in the actual code was normal Fortran punctuation. In
> particular, real constants were written as e.g. "3.14", not "3,14" as
> one would expect in French.

That is the standard IT way.

I even get pissed if parsing and formatting methods default
to locale specific conventions and not programming
convention (=EN US).

Arne
From: Arne Vajhøj on
On 24-05-2010 22:59, Mike Schilling wrote:
> Patricia Shanahan wrote:
>> Peter Olcott wrote:
>> ...
>>> I just want to know if it makes any sense to convert local
>>> punctuation and local digits to ASCII for the computer
>>> language that I am designing. That is the sole purpose of
>>> this thread. I used Chinese Java to provide a completely
>>> concrete example.
>> ...
>>
>> I don't have any experience with Chinese Java, but I have read a
>> couple of French Fortran programs, and France really does have
>> language purity laws. The identifiers and comments were all in
>> French, but the punctuation in the actual code was normal Fortran
>> punctuation. In particular, real constants were written as e.g.
>> "3.14", not "3,14" as one would expect in French.
>
> Using the French decimal point would necessitate other changes, since
> otherwise
>
> CALL FOO(3,14)
>
> would be ambiguous in whether it calls FOO with two integers or a real, of
> course.

The problem is known from Excel where in EN US uses '.' for decimal
point and ',' for argument separator, but some internationalized
versions use ',' for deimal point and ';' for argument separator.

Not an example to follow!!

Arne
From: Arne Vajhøj on
On 25-05-2010 01:35, Peter Olcott wrote:
> "Lew"<noone(a)lewscanon.com> wrote in message
> news:htfial$g79$1(a)news.albasani.net...
>> Peter Olcott wrote:
>>>>
>>>> --
>>>> Lew
>>
>> Please don't quote sigs.
>>
>> --
>> Lew
>> Please don't quote sigs.
>
> I make it a rule to never follow rules, I only follow the
> reasons behind the rules if there are any. Because of this
> what you said makes no sense. I might as well ask you to
> ALWAYS make sure to quote sigs. What difference does it
> make?

Quoting sigs waste bandwidth and make the posts harder
to read for people.

Arne