Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment: It is harder than you think. (Score 2) 330

by Kickasso (#42835627) Attached to: Ask Slashdot: Do Most Programmers Understand the English Language?

printf("Copied %n file%s\n", n_files, n_files > 1 ? "s" : "");

There are languages with more than two grammatical numbers. There are languages that use different word order with different numbers. You need to redesign your simple and easy printf statement to accommodate them, and the outcome is bound to be anything but simple and easy.

It seems intuitively obvious to me, which means that it might be wrong. -- Chris Torek

Working...