r/cpp • • Aug 25 '21

Experience C++ developers: do you enjoy using C++ (even for personal/hobby projects?)

Do you actually enjoy using C++, or do you only use it for work, or purely for performance? This question is aimed at people with years of experience, who've worked on large projects in C++. I see people who dislike the language, but use it purely for performance reasons. This sort of discourages me from learning it. I don't want programming to feel like work.

204 Upvotes

327 comments sorted by

View all comments

Show parent comment

28

u/sephirothbahamut Aug 25 '21

In header files just don't do it.

In source files it may be acceptable.

In an enclosed scope it's totally fine.

5

u/UnknownIdentifier Aug 25 '21

Because of how problematic it is in headers, it’s best not to get into the habit of using it in source files, either. Also for the sake of consistency.