真正的多语言编程语言? [英] Truly multi-lingual programming languages?

查看:64
本文介绍了真正的多语言编程语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到大多数语言都支持多种语言,但是我所见过的每种语言始终或多或少以美国为中心.就是说,我的意思是关键字,标准库函数等都具有英文名称.因此,作为一名程序员,您实际上仍然仍然需要至少掌握一些英语才能理解它.

I realize most languages support multiple languages, but every language I've seen has always been more-or-less US-centric. By that, I mean the keywords, standard library functions, etc. all have english names. So, as a programmer, you still really need to know at least some english to make sense of it.

有没有真正的多语言"语言支持语言关键字等多种语言?

Are there any truly "multi-lingual" languages out there with support for language keywords and such in multiple languages?

推荐答案

通常这是一个可怕的想法,在本地化IDE中工作的任何人都可以证明这一点.程序员在很大程度上依赖于拥有一个通用的词汇表.当编译器给我错误缺少类型说明符-假定为int"时,我可以与其他人共享此确切的错误消息,例如在SO上,对其他人熟悉以便他们可以告诉我这是什么意思.如果编译器改为使用丹麦语生成错误消息,那么我将只能从相对来说只有少数说丹麦语的程序员那里获得帮助.

This is generally a horrible idea, as anyone who's worked in a localized IDE can attest to. Programmers rely heavily on having one common vocabulary. When the compiler gives me the error "missing type specifier - int assumed", I can share this exact error message with others, for example here on SO, and it will be familiar to those others so they can tell me what it means. If the compiler instead generated error messages in Danish, I'd be limited to getting help from the relatively few programmers who speak Danish.

突然,我的词汇不再与在德国,法国或日本处于相同职位的人相同.我们不再能够交换代码,错误,错误修复或想法.

Suddenly my vocabulary is no longer the same as someone in the same position in Germany, France or Japan. We can no longer exchange code, bugs, bug fixes or ideas.

西班牙的开发人员将无法使用我的代码,因为它实际上是用另一种语言编写的.而且,如果我在编写代码时遇到麻烦,其他人将无能为力对其进行调试,因为它甚至无法在其本地化设置下进行编译(如果确实存在,则它们仍然对他们不可读).

A developer in Spain wouldn't be able to use my code because it was literally written in another language. And if I had trouble with my code, others would be helpless to debug it, because it wouldn't even compile under their localization settings (and if it did, it'd still be unreadable to them).

最终,一种编程语言是一种语言.它可能是从英语中借来的一些单词,但是它不是英语,并且您不需要了解英语即可编写程序,这比说英语所需的拉丁语理解更多(英语也借用拉丁词).

Ultimately, a programming language is a language. It may have borrowed some words from English, but it is not English, and you do not need to understand English to program in it, any more than I need to understand latin in order to speak English (English borrows latin words as well).

您不妨要求提供多种语言的英语. 有什么意义?是的,从理论上讲,这会让不讲英语的人能够...说英语.只是英语不会和其他讲英语的人一样,所以实际上并不能实现他们之间的交流.

You might as well ask for a multi-lingual English. What would be the point? Yes, it would in theory allow people who didn't speak English to... speak English. It just wouldn't be the same English as every other English-speaker speaks, so it wouldn't actually enable communication between them.

编程语言中的关键字if与英语中的 not 相同.即使其中一个显然是受另一个启发,它们也具有不同的含义.

The keyword if in a programming language is not the same as if in the English language. They mean different things, even though one was obviously inspired by the other.

C#中的delegate关键字与英语中的委托"含义不同. whilereturn或构造函数"也没有.它们不是英语单词,而是C ++,Java,C#,Python或任何其他编程语言中的关键字或概念.

The delegate keyword in C# does not mean the same thing as "delegate" in English. Nor does while, return or "constructor". They are not english words, they are keywords or concepts in C++, Java, C#, Python or any other programming language.

这篇关于真正的多语言编程语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆