[cfe-dev] 经过一些思考,我想,如果clang和llvm能提供多语言支持的话,必定会扩大其影响力.使计算机程序和代码世界变得更多彩更丰富和更多可能性./After some reflection, I think that if clang and llvm can provide multi-language support, it will certainly expand its influence to make computer programs and code the world more colorful and more possibilities

Renato Golin via cfe-dev cfe-dev at lists.llvm.org
Wed Oct 19 04:39:12 PDT 2016


On 19 October 2016 at 12:14, mats petersson <mats at planetcatfish.com> wrote:
> But if the ABI description [or it's implementation] looks like the subject
> of this email, I certainly wouldn't have a chance to figure out if it's
> right for my needs, or fix any bugs that may be inside it.

That helps put yourself on the OP's shoes. :)

Translating an ABI, or an API, or a User Guide document is far easier
than the whole software.

So, I'd be perfectly fine if there was an Open Source Chinese software
with an API that allows me to use their functions (some translated
mangling, probably) in my software.

It would be a lot more empowering to non-English speaking people if
they could express their thoughts in their natural ways, and only
translate the interfaces with other people.

The alternative, in the long run, is to have everyone thinking in the
exact same way... That'd be a sad future.


> If the purpose is to teach programming C++ is along the lines of the answer
> to "How do I get to <some place>" with "I wouldn't start from here". Yes,
> it's a very powerful and all encompassing language, but there are many
> languages that are much easier and better for a beginner or intermediate
> programmer. Python, Pascal, Java - or something completely new, more aligned
> with the way Chinese language works.

This is why I separated "C++ translation" to "New language". I agree
they're two completely separate objectives.

I have to be honest, it wasn't clear from the original post which one
was the objective.


> If the purpose is to create commercial and international software, I still
> would argue that English language is more or less essential. I have worked
> for a couple of larger Swedish companies, and the programming AND documents
> that go with that, are all written in English - and I know that French,
> Spanish, Italian and German companies do the same, because it makes it
> possible to communicate with people that do not speak/read/write Swedish,
> French, Spanish, Italian or German.

This is the enterprise status quo, but I have seen a lot of
international comments on non-English speakers' code. Most notably in
academia.

I don't think C++ should be an enterprise-only language. I believe in
universal access, and in the benefits (empowering people) and costs
(communication) it entails.

But that's my personal opinion.

cheers,
--renato



More information about the cfe-dev mailing list