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) {
foo(i);
i++;
}
What is the natural way to read out this code? This is my attempt
iは0。
i小なり10だったら
iを引数としてfooを呼び出す
iをインクリメントする
繰り返し
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.
iは0ですわ。
もしi<10でしたら
iを差し上げましてfooを実行させて頂きますのですわ
iをインクリメントするのですわ
繰り返し
How does that sound? How to make it sound more お嬢様らしい?