False friends usually aren’t homonyms since the word comes from different languages.
To give an example: an English speaker might look at “rare auto” (Dutch) and might translate it to “rare car”. But “rare” means “weird” in Dutch. So rare is a false friend in this case
intmain(){
cout << "It's more compact this way and yeah I'll die on this hill";
Return 0;}
//see you even get to end lines in devious winky smilies who doesn't love that
Preferably in English. Nothing is worse than reading code with a mixture of languages. Although false friends can also be quite annoying.
What does “false friends” mean?
In a nutshell, words that look the same / similar but with different meanings in their respective languages, making it pretty confusing.
Like homonyms or something different?
False friends usually aren’t homonyms since the word comes from different languages.
To give an example: an English speaker might look at “rare auto” (Dutch) and might translate it to “rare car”. But “rare” means “weird” in Dutch. So rare is a false friend in this case
What should you do if you inherit a project where they are already mixing languages because they just copy pasted from tutorials?
Exacerbate the problem by using your own style that’s not been used before.
The only solution to having too many standards is always to add another new standard. /xkcd
int main(){ cout << "It's more compact this way and yeah I'll die on this hill"; Return 0;} //see you even get to end lines in devious winky smilies who doesn't love that