Ian <> wrote:
: Has anyone tried translating the command set of Perl into other
: languages (French, Japanese, Arabic etc.), so that native speakers do
: not need to learn any English in order to program, then writing a
: suitable compiler?
Many years ago I as in Japan for the first time and had access to a
computer. At that time, computers still came with built-in ROM with
BASIC, which I could try after starting the machine. I was astonished
and disappointed to see that print statements still were named print,
and not insatsu (in whichever writing system that would be rendered
doesn't really matter). Naively, I asked myself why the advanced
technology of Japan had not brought forth a computer that would natively
"work in Japanese".
Years and many languages later I understood that such an endeavour is
of little meaning. Any given language consists of more than words, there
is also grammar. While you could replace "print" by "insatsu", you
would also have to transform
print $calar;
into
$calar wo insatsu;
("wo" being grammatical glue).
suddenly you go from PO to OP (predicate-object to object-predicate).
Your complete stack mechanism gets upset, ending up with a language
like Forth or PostScript. Japanese is a bit like RPN for calculators.
Saying
insatsu $calar;
would be completely ungrammatical, hence incomprehensible, in Japanese.
Things get worse if you talk about conditionals.
if ($a eq $b) {do something}
would become
($a,$b to ha onaji).dattara {katsudou}
since the condition in Japanese is expressed as a verb form, not as
a particle.
Worse with Arab which modifies the vowel structure of a consonantal skeleton
in order to arrive at new meanings.
No, this approach is completely impractical and not even of any academic
interest. You cannot learn French while, for the sake of making things
easy, maintain that you replace the French words by English. On y va -
let's go? How will you transform that?
The German-, French-, ... ized versions of MS Excel macro language and
friends show how utterly useless the approach is. You gain ease of talking
while loosing your complete audience. What a trade-off.
Oliver.
--
Dr. Oliver Corff e-mail: