Re: Natural "for" Loop, using Plural / Singular transformations ??

Karsten Nyblad <148f3wg02@sneakemail.com>
3 Jun 2006 18:52:32 -0400

          From comp.compilers

Related articles
Natural "for" Loop, using Plural / Singular transformations ?? olivier.chatelain@gmail.com (2006-05-26)
Re: Natural "for" Loop, using Plural / Singular transformations ?? owong@castortech.com (Oliver Wong) (2006-05-30)
Re: Natural "for" Loop, using Plural / Singular transformations ?? dmaziuk@bmrb.wisc.edu (Dimitri Maziuk) (2006-05-30)
Re: Natural "for" Loop, using Plural / Singular transformations ?? mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2006-05-30)
Re: Natural "for" Loop, using Plural / Singular transformations ?? tom@infoether.com (Tom Copeland) (2006-05-30)
Re: Natural "for" Loop, using Plural / Singular transformations ?? 148f3wg02@sneakemail.com (Karsten Nyblad) (2006-06-03)
Re: Natural "for" Loop, using Plural / Singular transformations ?? dot@dotat.at (Tony Finch) (2006-06-05)
Re: Natural "for" Loop, using Plural / Singular transformations ?? p_ludemann@yahoo.com (Peter Ludemann) (2006-06-11)
Re: Natural "for" Loop, using Plural / Singular transformations ?? jthorn@aei.mpg.de (Jonathan Thornburg) (2006-06-12)
Re: Natural "for" Loop, using Plural / Singular transformations ?? haberg@math.su.se (2006-06-12)
Re: Natural "for" Loop, using Plural / Singular transformations ?? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2006-06-15)
Re: Natural "for" Loop, using Plural / Singular transformations ?? gene@abhost.us (Gene Wirchenko) (2006-06-27)
[1 later articles]
| List of all articles for this month |
From: Karsten Nyblad <148f3wg02@sneakemail.com>
Newsgroups: comp.compilers
Date: 3 Jun 2006 18:52:32 -0400
Organization: Compilers Central
References: 06-05-083
Keywords: design, i18n
Posted-Date: 03 Jun 2006 18:52:32 EDT

olivier.chatelain@gmail.com wrote:
> Dear Compiler Cracks,
>
> What about using Plural => Singular transformations to generate loop
> variables from name of lists?
>
>
> EXAMPLE:
>
> FOR dependency IN dependencies DO
> PRINT dependency.name
> END
>
> = depenendcies -generates-> dependency =
>
> FORALL dependencies DO
> PRINT dependency.name
> END
> ...


When writing business applications for use in none English speaking
languages, it is common to let the identifiers be in the local
language, but few languages derive plural from singular the way it is
done in English.


Simply translating the local language words into English will not work
for two reasons: First many of the names in business applications
refer to local law and traditions. There may not be any good
translation into English. Secondly, take programmer whom native
language is not English.
        People tend to learn the parts of foreign languages they need in
their daily live. While most of these programmers can read English
texts about computer science you cannot assume that their English
vocabulary is good enough when it comes to business issues and law.


Then you could have the language localized for each language, but
experience tells that people want to buy software from other
countries, and of course multi national companies want to use the same
code in all countries. The experience is that localizing languages is
a pain because code cannot easily be ported from one country to
another.


Karsten Nyblad





Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.