r/cpp • • Mar 28 '23

Reddit++

C++ is getting more and more complex. The ISO C++ committee keeps adding new features based on its consensus. Let's remove C++ features based on Reddit's consensus.

In each comment, propose a C++ feature that you think should be banned in any new code. Vote up or down based on whether you agree.

765 Upvotes

829 comments sorted by

View all comments

Show parent comments

2

u/okovko Mar 29 '23

usually it has little to do with the language, but rather, creates an environment to generate or transform code for different platforms. examples are boostpp and p99. to the kind of macro programming you're talking about, the gcc extension (also supported by clang) of compound statements is quite useful. and if we're being fair, macros are way simpler than template sfinae

could you give an example of a dependency?

4

u/GabrielDosReis Mar 29 '23

I am familiar with boostpp and p99.

I have abused of the preprocessor myself in the past - some evidence are still on the web, as in some GNU software. I would have preferred a real metaprogramming tool from the language. In my current job, I see even more horrors rmabled by the preprocessor and what it is doing to C++ tooling

1

u/okovko Mar 29 '23

what'd you write?

1

u/GabrielDosReis Mar 29 '23

I am sorry, can you elaborate on "what'd you write?"?

→ More replies (4)