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

> C++ is in a relatively tough spot because it has to maintain backward compatibility all the way back to C89

C++ does not maintain backwards compatibility with any version of C. Almost any relatively large idiomatic C program will fail when compiled as C++ for a few simple differences (most commonly, in C it is idiomatic to write `int *c = malloc(sizeof(int))`, while this is a type error in C++).



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

Search: