News for hackers. Stuff that matters.
Re:Natural language isn’t just English [pdf] by int_19h on Wednesday December 25, 2019 @08:06AM (#21878349)
Translating programming languages was tried. Indeed, when ALGOL was originally designed, that was one of the reasons why its keywords were standalone "symbols", completely distinct from the letters they consist from. The idea was that a particular representation language could choose different representations for those "symbols" - and one obvious option was to use the translated words.

Here's an example of an Algol-60 program in Russian representation: https://i.imgur.com/9edem3y.png

This was also done for Algol-68, and some Pascal dialects. But the practice has mostly died out once newsgroups and Internet became widely accessible. There's honestly very little upside to translating keywords and identifiers, because learning words is the easiest part of learning any language (grammar is much more complicated). And you don't actually have to learn the original meanings of words, either - you just need to know what they mean in programming context. In fact, not knowing the original meaning can be beneficial sometimes, because it can prevent poor understanding due to false equivalence or poor metaphors.

But there's considerable downside in not being able to understand or reuse snippets from another language...

TL;DR: we tried - it's not worth it. English FTW.

There are no comments on this comment yet.