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

Peter Ludemann <p_ludemann@yahoo.com>
11 Jun 2006 02:19:14 -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)
Re: Natural "for" Loop, using Plural / Singular transformations ?? gene@abhost.us (Gene Wirchenko) (2006-06-27)
| List of all articles for this month |

From: Peter Ludemann <p_ludemann@yahoo.com>
Newsgroups: comp.compilers
Date: 11 Jun 2006 02:19:14 -0400
Organization: SBC http://yahoo.sbc.com
References: 06-05-083 06-06-004
Keywords: design
Posted-Date: 11 Jun 2006 02:19:14 EDT

On 6/3/2006 3:52 PM, Karsten Nyblad wrote:
> 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


[snip]


> 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.


And some languages don't have plural forms at all (Chinese, Japanese);
some have special dual forms (Lithuanian). Some don't have articles
(Russian), so idioms like "for theDependency in dependencies ..."
don't translate well. Some insist on conjugating the verb according to
the gender of the subject. Etc., etc.


In designing programming languages, it's useful to have at least a
passing acquaintance with a few other languages, preferably from another
language family than your native language. Here's a description of Perl,
as invented by a Latin-speaker:
http://www.csse.monash.edu.au/~damian/papers/HTML/Perligata.html
                  meo varo haec da. # my $var = @_;
                  meis varo haec da. # my ($var) = @_
                  meis varis haec da. # my @var = @_;


And, of course, there's the classic (still controversial):
http://en.wikipedia.org/wiki/Sapir-Whorf_hypothesis


- peter ludemann


Post a followup to this message

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