28

私が今まで見たすべてのプログラミング言語はラテンアルファベットに基づいています。私がカナダに住んでいることを考えると、これは驚くべきことではありません...しかし、他のアルファベットに基づくプログラミング言語、または他の優れたコンピューター科学者がいることは本当に理にかなっています世界はフィールドで進むために新しいアルファベットを学ばなければならないでしょう。他のアルファベットが支配的な国の人々がラテンアルファベットに基づいた言語を開発していることは知っていますが(たとえば、日本のRuby)、プログラミング言語がアラビア語やキリル語などの他のアルファベットに基づいていることはどれほど一般的ですか?または、日本の漢字のように、アルファベットではなく表語文字である書記体系でさえありますか?また、これらの言語のいずれかが活発に普及しています。それとも、主に教育ツールとして使用されていますか?これは私がプログラミングを始めてから私を悩ませてきたものであり、本当の答えを考えることができる誰かに出くわしたことはありません。

4

10 に答える 10

37

Perlを見たことがありますか?

于 2010-05-20T00:39:56.073 に答える
22

APLはおそらく最も広く知られています。かっこいいキーボードオーバーレイもあります(または、購入しなければならなかった特別なキーボードでしたか?):

ウィキペディアの画像提供

アルファベット以外のカテゴリには、 LabVIEWのようなプログラミング言語もあります。これはほとんどがグラフィカルです。(オブジェクトにラベルを付けることができ、文字列操作もできるので、テキストコンテンツがいくつかあります。)LabVIEWはデータの取得と自動化に長年使用されてきましたが、レゴマインドストームのデフォルトプラットフォームになったときに少し人気がありました。

于 2010-05-20T00:40:42.483 に答える
10

There's a list on Wikipedia. I don't think any of them is really prevalent though. Many programmers can learn to write programs with english keywords even if they didn't understand the language. Ruby is a good example, you'll still see Japanese identifiers and comments in some Ruby code.

于 2010-05-20T00:50:02.103 に答える
5

Well, Brainf* uses no latin characters, if you'll pardon the language...and the pun.

于 2010-05-20T09:12:06.167 に答える
3

多くの言語ではUnicode識別子が許可されています。これは標準のJavaの一部であり、g ++(\ uNNNNエスケープを使用する必要があります)とMSVC ++の両方で許可されます(この質問も参照)。また、制御構造の名前を変更するために使用できる#define(またはより良い)ものもあります。

しかし実際には、人々はほとんどの場合これを行いません。変数名の言語などの過去の質問を参照してください。、すべてのコードは英語で書く必要がありますか?、など。

于 2010-05-20T00:40:14.920 に答える
2

まあ、常にAPLがあります。それには独自のUNICODE文字があり、以前は特別なキーボードも必要だったと思います。

于 2010-05-20T00:41:29.597 に答える
2

There'is one langauge used in russian ERP system called after company, which developed it 1C. But it's identifiers and operators has english analogs.

Also, I know that haskell has unicode identifiers support, so you can write programs in any alphabet. But this is not useful (My native language is russian). It's quite enough that you have to type program messages and helpful comments in native alphabet.

于 2010-05-20T02:17:54.337 に答える
2

Agda.

Sample Snippet:

mutual
   data ωChain : Set where
     _∷_,_ : ∀ (x : carrier) (xω : ∞ ωChain) (p : x ≼ xω) → ωChain

   head : ωChain → carrier
   head (x ∷ _ , _) = x

   _≼_ : carrier → ∞ ωChain → Set
   x ≼ xω = x ≤ head (♭ xω)
于 2010-05-22T14:10:04.050 に答える
1

Other people are answering with languages that use punctuation marks in addition to Latin letters. I wonder why no one mentioned digits 0 to 9 as well.

In some languages, and in some implementations of some languages, programmers can use a wide range of characters in identifiers, such as Arabic or Chinese characters. This doesn't mean that the language relies on them though.

In most languages, programmers can use a wide range of characters in string literals (in quotation marks) and in comments. Again this doesn't mean that the language relies on them.

In every programming language that I've seen, the language does rely on punctuation marks and digits. So this answers your question but not in the way you expect.

Now let's try to find something meaningful. Is there a programming language where keywords are chosen from non-Latin alphabets? I would guess not, except maybe for joke languages. What would be the point of inventing a programming language that makes it impossible for some programmers to even input a program?

EDIT: My guess is wrong. Besides APL's usage of various invented punctuation marks, it does depend on a few Greek keywords, where each keyword is one letter long, such as the letter rho.

于 2010-05-20T01:04:41.237 に答える
0

I just found an interesting wiki for "esoteric programming languages".

于 2010-05-20T09:01:49.343 に答える