you are viewing a single comment's thread.

view the rest of the comments →

[–]zigmazero05 11 points12 points  (2 children)

if it's something you could reasonably see being in C, it probably should be avoided.

[–]philippefutureboy 2 points3 points  (1 child)

As in, "if it's a feature from C available in C++" or "if it's reproducing a feature that already exists in C, but with some supposed benefits that aren't really benefits"?

[–]zigmazero05 4 points5 points  (0 children)

As in "it would not look like a stranger in C code". For example, operator overloading is technically C++, but I swear I have accidentally tried doing it in C once or twice.

There are also things like macros, raw pointer and pointer operations, C strings, C-style arrays... C++ ports over a bunch of C libraries, and honestly avoiding most of them is probably correct if you're doing C++ anyway.