I am wondering how Japanese developers read aloud a piece of computer code to other developers. Take the following C/C++ code for example

int i = 0;
while (i < 10) {

What is the natural way to read out this code? This is my attempt


Does it sound fine? Also, there is a possibly that the 繰り返し part might be ambiguous since it might refer to the previous line or the second line. How to fix that part?

Bonus: How to pronounce the above piece of code using お嬢様言葉? For a bit of context, I read this amusing article about using Japanese in C++ and I am thinking about creating a compiler for that weird programming language.


How does that sound? How to make it sound more お嬢様らしい?


1 Answer 1


It is not common practice to "translate" such codes into Japanese, at least not among professionals. They just read this mostly in (katakanized) English, token by token. Typically something like this:

イント アイ イコール ゼロ
ワイル アイ しょうなり じゅう (かっこ)
フー アイ
アイ プラスプラス

Few English-speaking developers read this code like "Declare an integer variable i and assign zero to it" or "Call f with i as an argument" while doing a professional code review, either.

かっこ and かっことじ are used when you really need to read parentheses out loud, but they can be usually omitted. If you really need to distinguish, しょうかっこ refers to (/), ちゅうかっこ refers to {/}. セミコロン (;) is usually omitted for the same reason, too.

お嬢様コーディング is an extension of 日本語プログラミング言語, which is a fairly rare attempt and is considered useless by most developers. No one wants to type iをインクリメントする instead of i++, so it is nothing more than a joke. (As a joke, I love 以上ですの at the end of a loop, though.)

Related: Standard mathematical operations, expressed in Japanese

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .