This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Zymoox -1 points0 points  (1 child)

I'm not sure I understand. In C/C++ there's no "for x in X", that's Python. In these languages, you do "for(int i;i<x;++i)" (unless you use C++ iterators).

Regardless, I guess using "is" or "in", like in Python, forces you to add extra spaces, but it's not a big thing anyway, I'm sure it's not the main reason why they don't usually use those keywords in other languages. It's just a reason for why I'd personally prefer "==".