Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> You don't know what C++ code is doing unless you're familiar with the specific libraries it invokes; syntax isn't much of a guide.

i'd say this about Perl or Ruby, but C++?



Yeah. With operator overloading, automatic type conversions, template expansions and so on it's a fair criticism.


C = A + B;

In C++ what does this line do? The list of things that can effect what this line of code does are: Types of A,B, and C, single arg constructors, explicit conversion operators, operator +, operator =, and copy constructors might come into play. I more than likely have forgotten something from that list.


Macros.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: