4 ms·
> All nouns start with an uppercase letter, so your loop index must be "I" or "J". We could have user-defined qualifiers (like const) which are distinct from va
by c3534l 7y ago
> All nouns start with an uppercase letter, so your loop index must be "I" or "J". We could have user-defined qualifiers (like const) which are distinct from variables because they start lowercase. So where you have to use @ in Python, we just use lowercase.
Yeah, but i and j come from math. I've never seen a math paper where people summed a variable using a capital subscript.
I think it might be more interesting to think about how you write a German version of a language that is meant to be English-like. Something like SQL or Cobol.
- masswerk 7y agoAlso, a loop index is a placeholder for a numeral, like "eins", "zwei", "drei", hence Für i = 1 bis 2 ... However, using articles, Für das I = 1 bis 2 ... And we may want to use a "Doppelpunkt" and an exclamation mark, since this is still a command: Für i: 1 bis 2!
- masswerk 7y agoExtending on the importance of commands in the German language (and culture) – these are a serious matter and not to be fuzzed with –, a computer featuring an explicit fast-mode, like the Sinclair ZX81, may lend itself particlarly well to a German language implementation: Für i: 1 bis 10, aber schnell! ;-)