Hacker News new | ask | show | jobs
by petters 3067 days ago
I like the fact that in C++, the line

x = y;

behaves the same if the types are int and vector<int> (unlike e.g. Java and Python).

1 comments

Except you are not always assured on what = does when reading other people's code. :)
Well, you can define a function in Java called setFoo, but that instead sets bar. Similar.

You can intentionally confuse in most letters if you want to.