Hi,
Combuster wrote:You missed that automatic translation does not solve the original problem of antonyms at all. The other end might occasionally end up with two functions having identical names but doing completely different things. The other logical alternative of manual translation is well, manual and obviously counterproductive.
What problem with antonyms? From the compiler's perspective, token 0x1234 is very different to the variable/function name "while". From the user's perspective (for an example), token 0x1234 displayed as a green shiny box with the text "while" written on it in bold font will look very different to a yellow box with "while" written in an italic font.
Even without any graphical hints at all, people are good at figuring things out from context. For example:
Code: Select all
int void(void) { int for; int while = 0; int do = 999; do {
for = while; while++; } while(for != do); return for; }
Note: sane source code formatting is a graphical hint too.
Combuster wrote:Not to mention that if you're having a live conversation you're literally talking about two different terms for everything code-related.
Well, you're right there - if people are talking about code on forums or something (outside the IDE), then it would be a bit confusing when people start using unfamiliar names for keywords. I think people are smart enough to use a common language when talking to others though.
Combuster wrote:I fail to see "all code in English" disappearing from a company's manual of style for a really long time.
A company's manual of style is another thing that is stupid and unnecessary. Even with the normal languages that we're all used to, I fail to see why IDEs don't automatically format the code for the user whenever a file is loaded, and then automatically reformat it when saving changes to disk (so that the IDE's user never needs to see whatever the "manual of style" says source code should look like on disk). Of course in this case the company's manual of style could just say "strip all unnecessary white space".
As far as I can tell, the purpose of most "manuals of style" is to make sure there's no problem if people get sucked into a time warp that takes them back to 1975, and they need to work on the source code using a crappy 80 column terminal running
ed.
Cheers,
Brendan